-
Notifications
You must be signed in to change notification settings - Fork 11
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]: Replace static references to "time" for the time dimension name with self._dim
in TemporalAccessor
#311
Comments
self._dim
in TemporalAccessorself._dim
in TemporalAccessor
@tomvothecoder are you detailing somewhere (maybe some place easy to find in the documentation) what will be recognized as a time axis (you mention above such as "time_centered", "T", "time_counter")? I'm assuming you don't make a difference between upper and lowercase, but maybe you can have a look at what cdms2 considered a time axis. There is an
Note that page 47 also describes As a last resort, the |
Note: see example usage of |
We mention how we map to coordinates in the Planned Features section, under "Things we are striving for".
The related function is called
|
What happened?
The
TemporalAccessor
class has static references to "time" as the name of the time dimension. However, datasets can use different names for a time dimension, such as "time_centered", "T", "time_counter",Original source:
In looking at Test 3, I see another issue here. The time axis needed for temporal operations is not actually assigned as a dimension. I thought this could be fixed by dropping
time_counter
and just usingtime_centered
: this would get rid of the multiple time axes which is the issue for Test 1 and 2 and would also be the appropriate coordinate for temporal operations:But this yields a different error:
@tomvothecoder - do you think this is a separate issue in the temporal averaging logic?
Originally posted by @pochedls in #285 (comment)
What did you expect to happen?
Temporal averaging should work regardless of the name of the time dimension.
Minimal Complete Verifiable Example
Relevant log output
No response
Anything else we need to know?
This is a simple fix that involves updating "time" references to
self._dim
.xcdat/xcdat/temporal.py
Line 149 in 4c51879
Environment
xcdat = v0.3.0
The text was updated successfully, but these errors were encountered: