-
Notifications
You must be signed in to change notification settings - Fork 77
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
Weird issue with 'step' value from seasonal forecasts #38
Comments
@matteodefelice unfortunately this is the expected behaviour at the moment. I feel your pain. The problem is that these GRIB files express the Changing the dimension coordinate from Ideas and especially PRs are welcome! |
Well, the most important thing for me is that you folks are aware of this. The good news is that if you convert with |
@matteodefelice what request are you using? Last time I checked >>> cds.retrieve('seasonal-monthly-single-levels', {
'originating_centre': 'ecmwf',
'variable': 'maximum_2m_temperature_in_the_last_24_hours',
'product_type': 'monthly_mean',
'year': '2018',
'month': ['04', '05'],
'leadtime_month': ['1', '2'],
'grid': ['3', '3'],
'format': 'grib',
},
'out.grib',
) |
This is my request:
This one works perfectly with |
Even if this issue is older than #97 I'd like to close this one as duplicate of that as the discussion there has added useful insights. @matteodefelice hope you don't mind. |
I have downloaded a dataset from
seasonal-monthly-single-levels
with starting month 1 and lead-time from 1 to 4 for several years.I have loaded the grib file with:
d = xr.open_dataset('/path/to/grib', engine = 'cfgrib')
and in the
step
field I get some strange numbers:Apparently, the steps take into account the variable number of days for February. This is a big problem because for some values of
step
I have NaN in some years with the impossibility to calculate climatologies for example.Instead, I would expect to have
step
with the same size ofleadtime_month
. Is this an expected behaviour? Can you suggest a way to deal with this?The text was updated successfully, but these errors were encountered: