Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with notebooks 3-9 #1

Open
tianhg28 opened this issue Jun 7, 2024 · 1 comment
Open

Issue with notebooks 3-9 #1

tianhg28 opened this issue Jun 7, 2024 · 1 comment
Assignees

Comments

@tianhg28
Copy link

tianhg28 commented Jun 7, 2024

These two lines of code that appear in each of the notebooks causes an the same error:

est_SK, var_SK = gs.Interpolation.skrige(Pred_grid_xy, df_grid, 'X', 'Y', 'Nres', k, vario, rad) content here.
sgs = gs.Interpolation.cluster_sgs(Pred_grid_xy, df_grid, 'X', 'Y', 'Nbed', 'K', k, df_gamma, rad)

IndexError Traceback (most recent call last)

...
...
...

File /opt/homebrew/Caskroom/miniconda/base/envs/gstatsim/lib/python3.10/site-packages/gstatsim.py:634, in Covariance.make_covariance_matrix(coord, vario, rotation_matrix)
632 nug = vario[1]
633 sill = vario[4]
--> 634 vtype = vario[5]
635 mat = np.matmul(coord, rotation_matrix)
636 effective_lag = pairwise_distances(mat,mat)

IndexError: list index out of range

There seems to be a missing argument thats supposed to be passed in, could be because of issue with the package since it looks like it successfully executed previously.

@spestana spestana self-assigned this Jun 7, 2024
@scottyhq
Copy link

Thanks for opening this @tianhg28. I think this book and codebase will be a bit outdated compared to what is now under the GatorGlaciology Org:

JupyterBook
https://github.com/GatorGlaciology/gstatsimbook

Algorithms
https://github.com/GatorGlaciology/GStatSim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants