-
Notifications
You must be signed in to change notification settings - Fork 39
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
Parsing "months since ..." dates #304
Comments
|
Having said that, if you are using |
Thanks - that would certainly help me! I appreciate that it's an underscore method, but it is very useful - converting CF-netCDF |
Ah, but looking at my code, it may be that I don't have to rely on this method as much as I perhaps thought ... I shall investigate :) |
Hi,
Following on from #68, it turns out that you can't now parse dates of "months since ..." in the Gregorian calendar:
Was this intended?
This makes it hard to read datasets like:
which exist, even if the creators probably didn't really mean what they encoded (although they might have!).
The lines https://github.com/Unidata/cftime/blob/master/src/cftime/_cftime.pyx#L97-L100 seem to restrictive to me. I'm fine with raising an exception when you try do something in these units (like
date2num
), but I think that it might be too restrictive to prevent these units from being stored in the first place.Thanks,
David
The text was updated successfully, but these errors were encountered: