-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Bug]: Failure to decode non-CF compliant time #261
Comments
Notes from meeting
|
Here are 3 additional issues with time coords. These can be opened cdms2 but hit a problem with /p/css03/esgf_publish/CMIP6/CMIP/MOHC/HadGEM3-GC31-MM/historical/r2i1p1f3/SIday/sitemptop/gr/v20191218/sitemptop_SIday_HadGEM3-GC31-MM_historical_r2i1p1f3_gr_19900101-19941230.nc
/p/css03/esgf_publish/CMIP6/PAMIP/CCCma/CanESM5/pdSST-futBKSeasSIC/r41i1p2f1/Amon/ua/gn/v20190429/ua_Amon_CanESM5_pdSST-futBKSeasSIC_r41i1p2f1_gn_200004-200105.nc
/p/css03/esgf_publish/CMIP6/ScenarioMIP/EC-Earth-Consortium/EC-Earth3/ssp245/r3i1p1f1/SImon/siu/gn/v20210517/siu_SImon_EC-Earth3_ssp245_r3i1p1f1_gn_203301-203312.nc |
These are file corruption issues that appear unrelated to this issue and would need further diagnosis. For the first file, I get an error opening this using For the second file, the The third one yields HDF errors when reading in the variable |
@pochedls yep, you're right all three are garbled. My code validated these using I've just issued some errata logs, and these datasets have been flagged with @sashakames, so will be added to purge lists if that makes sense. I'll spend some more time reviewing apparent "edge cases" in the future so as not to waste folks' time |
* attempt at #261 * adding some documentation * Add PR review fixes Co-authored-by: Tom Vo <tomvothecoder@gmail.com>
What happened?
I tried opening a dataset with non-CF compliant time units. We don't currently have code to process this particular type of non-CF compliant time axis so I got an error.
What did you expect to happen?
Ideally, we could change
open_dataset
(andopen_mfdataset
) to attempt todecode_non_cf_time
and if it fails, simply do not decode the time axis, e.g., here:[Note that there would also need to be some error handling in
_has_cf_compliant_time
]Minimal Complete Verifiable Example
Relevant log output
This error results because we were expecting units of the form "X since Y", but the units are
year A.D.
(time axis has decimal years, i.e., 1850.041667, 1850.125, ...).Anything else we need to know?
Should I attempt a PR?
Environment
Recent-ish xcdat dev environment.
The text was updated successfully, but these errors were encountered: