-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Adjusting extract_time
to make year optional
#2304
Comments
It would probably be easiest to modify the |
I agree with @bouweandela - next thing you know, when NGMS comes about, we'll want an |
extract_day_range
extract_time
to make year optional
@bouweandela @valeriupredoi sounds good, I though before to adjust |
If you specify a |
True, the problem is that I'm interested in the data from, e.g., 2011-2030, but since I need anomalies with the 1940-1969 base period, I have to use |
Ok I tried following:
By the looks of it, the second P.S. I will try to explain what I am trying to do and why, may be I overcomplicate things and there is a better way or there is a way to pass object through yml, which I missed or there is a way to apply preprocessor on the preprocessed data which is directed through the recipe and not diagnostic (?). I have an extreme event attribution recipe, similar to the one above, but for multiple climates (1850-1900, 2011-2030, 2081-2100). The above recipe works for well for yearly values, the So far I see several solutions to this problem:
Currently, I've done the combo of the lowest to options and ran the extract partial datetime and subtract anomalies in the diagnostic, but I think it could be done better. Again, any suggestions welcome. |
Indeed, that does not work: |
See here for an idea how we could enable using the |
Thanks, the consensus is to make the year and month |
@bouweandela @valeriupredoi you might know, why is this part needed in the |
It is needed in case time isn't associated with a dimension at all. |
Almost ready to submit an extreme event diagnostic. To make the current diagnostic to be applicable for a wider range of applications, I suggest to create a preprocessor
extract_day_range(start_day, end_day)
which would extract a range of days fromstart_day
toend_day
in each year (similar toextract_month
). I tested it in the diagnostic, extracting constrains in iris and it works. I will try to make it happen in the next weeks.The text was updated successfully, but these errors were encountered: