How do I add a calendar to the time axis? #381
Unanswered
aaschwanden
asked this question in
2. Questions
Replies: 1 comment
-
|
If you have the original xarray dataset open, you should be able to retrieve the encoding with I think this will lead to another error (xcdat needs the time bounds to compute the weighted annual average):
Could you instead subset the year 1992 as follows: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to calculate annual means for monthly data imported from a Pandas data frame, but I am receiving an error
KeyError: "This dataset's time coordinates do not have a 'calendar' encoding attribute set, which might indicate that the time coordinates were not decoded to datetime objects. Ensure that the time coordinates are decoded before performing temporal averaging operations."when I run the example code below:
How do I set the calendar so that the averaging works?
Beta Was this translation helpful? Give feedback.
All reactions