-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Problems plotting long model control runs with gregorian calendar #3841
Comments
Thanks for the report. This isn't immediately helpful to you but: any ideas why xarray isn't in the stack trace? Is this a plotting oddity? |
It looks like you can set |
I think this is probably best fixed in nc-time-axis. It looks like it is creating generic datetimes with year 0 somewhere in here, which cftime does not allow for the proleptic Gregorian calendar. The error gets thrown when trying to apply the calendar type in I'm fine though with you posting this here for visibility; I'm not sure how active the nc-time-axis repo is. |
Apologies for not noticing this earlier. I (wrongly) assumed that xarray would handle the axis limits. Should I raise an issue over there? I am currently quite busy so it might take a while for me to be able to work on a PR.
I tried this:
and am getting the same error. |
No worries! Yeah, it would be great if you could post an issue there; I think you can probably come up with a more minimal example (i.e. take xarray out of it and use some synthetic data with cftime dates near year 0 as the x-coordinate). The fact that |
Closing in favor of SciTools/nc-time-axis#44 |
I noticed a problem the other day, when I tried to plot some very long control run data from CMIP6 on ocean.pangeo.io.
The control run of this model (CSIRO's ACCESS-ESM1-5), starts in year 101, but runs for 900 years. If I try to plot the full run as a timeseries at any point in the grid:
I get the following error:
Error message
When I restrict the timeseries to a shorter time it works fine:
I assume that the internal logic tries to set the xlimit on the left side to some negative year if the full range is large. Is there a way to suppress that behavior? Or could the plotting routine default to a leftmost date of year 1 for any cftime data with gregorian calendar?
The text was updated successfully, but these errors were encountered: