Why does my kernel restarts/dies when displaying or plotting values in an xarray DataArray? #7571
Unanswered
shreyatrivedi26
asked this question in
General
Replies: 1 comment 1 reply
-
How large is your |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am working with a NetCDF file (ds) which has one variable 'zg' and 4 dimensions (time,levels,lat,lon). I am trying to select a coordinate point at one level. However when I made the selection and tried to look at the DataArray (using ds.values) or plot the time-series (by using ds.values.plot()), my kernel freezes and dies in sometime. I get a pop error that "Kernel is restarting". I am not able to figure out the exact problem as this problem is not occuring when I plot the spatial plots (for example a single time-slice ds[0,:,:].plot()). It has not happened before as I have worked with multiple CMIP6 model files before.
Following is my code:
I have upgraded my matplotlib as well as pip and python but nothing worked.
I downgraded the freetype assuming that my matplotlib is behind the problem but it didn't help.
I have been struggling with this for sometime now and it will be extremely helpful if I get some guidance on this!
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions