Open tianhg28 opened 3 months ago
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
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.