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

IndexError: list index out of range #40

Open
Sar1hak opened this issue Jul 2, 2021 · 6 comments
Open

IndexError: list index out of range #40

Sar1hak opened this issue Jul 2, 2021 · 6 comments

Comments

@Sar1hak
Copy link

Sar1hak commented Jul 2, 2021

I am trying to run cosipy using my own NetCDF file but while executing I am getting this error:

Traceback (most recent call last): ] | 0% Completed | 0.1s
File "e:/Code/GITHUB/main/GUI.py", line 1199, in run_Code
CosipyOutput(date_start= self.StartDate_edit.dateTime().toPyDateTime(),
File "e:\Code\GITHUB\main\CosipyEvaluation.py", line 338, in CosipyOutput
run_cosipy(cluster, IO, DATA, RESULT, RESTART, futures)
File "e:\Code\GITHUB\main\COSIPY.py", line 165, in run_cosipy
LAYER_IRREDUCIBLE_WATER,LAYER_REFREEZE,stake_names,stat,df_eval = future.result()
File "C:\Users\Sarthak\anaconda3\envs\dissertation\lib\site-packages\distributed\client.py", line 220, in result
raise exc.with_traceback(tb)
File "e:\Code\GITHUB\main\cosipy\cpkernel\cosipy_core.py", line 280, in cosipy_core
lwc_from_melted_layers = GRID.remove_melt_weq(melt - sublimation - deposition)
File "e:\Code\GITHUB\main\cosipy\cpkernel\grid.py", line 513, in remove_melt_weq
SWE = self.get_node_height(idx) * (self.get_node_density(idx)/water_density)
File "e:\Code\GITHUB\main\cosipy\cpkernel\grid.py", line 705, in get_node_height
return self.grid[idx].get_layer_height()
IndexError: list index out of range

@AnsArn
Copy link
Collaborator

AnsArn commented Jul 3, 2021

I think some of your glacier gird points are melted away.
Please try to start with a thicker initial glacier height in constants.py (initial_glacier_height).

@Sar1hak
Copy link
Author

Sar1hak commented Jul 4, 2021 via email

@AnsArn
Copy link
Collaborator

AnsArn commented Jul 20, 2021

Could you tell me the exact line number in the code? And what is your latitude range?

@Sar1hak
Copy link
Author

Sar1hak commented Aug 29, 2021 via email

@AnsArn
Copy link
Collaborator

AnsArn commented Aug 31, 2021

Ok. Can you tell me the line number in the radCor module?

The LocalCluster is for simulations on your local computer or laptop, the SLURMCluster for high performance computing clusters.

Can you run the Zhadang example?
https://cosipy.readthedocs.io/en/latest/Documentation.html

@Sar1hak
Copy link
Author

Sar1hak commented Sep 2, 2021 via email

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

2 participants