I tried to download T2M data for time T00, T06, T12, T18, but the final result did not have the dimension of “time”
But the data downloaded earlier this year through the old version of CDS was correct
Quick hack is to substitute the output: netcdf with netcdf_legacy in the data_format field. This returns the old format style. Here are some more tips and tricks for the transition to the new API:
Thank you very much! I can now download the data correctly. However, I still don’t understand why changing the data format affects the downloaded data. Using ‘netcdf’ only downloaded one time step, while using ‘netcdf_legacy’ correctly downloaded four time steps.
Thanks for raising this @Huang_yb! I also find the new monthly averaged data very inconvenient with the time dimension missing, making it very difficult (if not impossible) to perform some rather basic operations (e.g. obtaining the long-term monthly average, subselecting time periods) using cdo/xarray.
The new ‘date’ coordinate is not even convertible to datetime64[ns], the screenshot below shows what it gives me after trying:
Well, at least the ERA5-land monthly averaged reanalysis data has a time dimension. If you are not looking for data over the ocean and file size is not an issue (given its higher resolution), then it might serve as an alternative…