You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my comment in #229, I thought I had a workaround for domain means. I re-looked this issue and found some unintuitive behavior.
It turns out I needed to
Set def_time to False in the variable definition, as well as all the variables that it depends on.
Failure to do the latter resulted in an "Unknown file format" error when attempting to open the output.
Define a region for the whole domain and use
output_time_regional_reductions = ['reg.ts']
(For a regular time series, 'ts'.)
Use an option other than 'ann' for output_time_intervals. e.g. [1].
(I tested this for a dataset from Jan-June, and it worked for 'djf', [1],[12])
It seemed very confusing to have to set a time string in order to avoid subsetting by time and output the entire time series. As a workaround, I made the following change in time_label (utils/io.py) so that I could set output_time_intervals=[0]:
elif type(intvl) ==intandintvlinrange(1, 13):
to
elif type(intvl) ==intandintvlinrange(0, 13):
We had a related discussion in #204 . I would appreciate knowing if there were a better fix or if this might introduce unwanted issues. If not, we can treat this as documentation.
The text was updated successfully, but these errors were encountered:
@chuaxr thanks for this report. #252 is definitely our priority moving forward (after I finish the work I started on #229). Sorry we've been slow on this one...I've been tied up with non-aospy stuff mostly so far this year.
It's likely that I'll only be able to update aospy after #208 is resolved, so that would be highest on my wish list. Or perhaps the two issues could be resolved simultaneously? :)
In my comment in #229, I thought I had a workaround for domain means. I re-looked this issue and found some unintuitive behavior.
It turns out I needed to
Set def_time to False in the variable definition, as well as all the variables that it depends on.
Failure to do the latter resulted in an "Unknown file format" error when attempting to open the output.
Define a region for the whole domain and use
output_time_regional_reductions = ['reg.ts']
(For a regular time series, 'ts'.)
Use an option other than 'ann' for output_time_intervals. e.g. [1].
(I tested this for a dataset from Jan-June, and it worked for 'djf', [1],[12])
It seemed very confusing to have to set a time string in order to avoid subsetting by time and output the entire time series. As a workaround, I made the following change in time_label (utils/io.py) so that I could set output_time_intervals=[0]:
to
We had a related discussion in #204 . I would appreciate knowing if there were a better fix or if this might introduce unwanted issues. If not, we can treat this as documentation.
The text was updated successfully, but these errors were encountered: