-
Notifications
You must be signed in to change notification settings - Fork 32
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
KeyError: key Date not found #110
Comments
Are you looking for this? Lines 103 to 120 in b8751a9
|
I guess so, but now it is not so clear to me how to modify it so that it can handle |
Ah perhaps this needs to include NCDatasets.jl/src/cfvariable.jl Lines 174 to 183 in 947db89
Probably with a new test case in |
YeaP, this seems like it! |
I guess for full Date support CFTime.jl would need to support Date as well as DateTime. Though there may be a reason this is not supported, as time in NetCDF is more of a continuous variable, and fit better with DateTime. Unless we decide that Date represents 00:00. |
For me it seems reasonable and straight-forward that assuming
|
I agree that this would be a nice feature. I do not need this myself, but I would be happy to review a PR. |
Describe the bug
Trying to write a dimension with values
Date("2000-01-01"):Month(1):Date("2019-12-01")
to an .nc file I getwhich happens in accessing
ncType[vtype]
in the definition ofdefVar
.The fix is to add an entry to this "dictionary
ncType
that allowsDate
and it handles it the same asDateTime
.If I transform my data into
DateTime
it works.I can't even find where in the source
ncType
is defined though... Where is it defined? this seems like a simple fix.The text was updated successfully, but these errors were encountered: