ml_drought
ml_drought copied to clipboard
`unable to decode time units 'months since 1900-01-01' with calendar 'gregorian'.`
The error message suggests using the decode_times=False
option. But this outputs just an array of integers.
In [17]: d = xr.open_dataset(chirps_dir, decode_times=False)
In [18]: d
Out[18]:
<xarray.Dataset>
Dimensions: (lat: 45, lon: 35, time: 1440)
Coordinates:
* time (time) float32 0.0 1.0 2.0 3.0 4.0 ... 1436.0 1437.0 1438.0 1439.0
* lon (lon) float32 33.625 33.875 34.125 34.375 ... 41.625 41.875 42.125
* lat (lat) float32 -5.125 -4.875 -4.625 -4.375 ... 5.375 5.625 5.875
Data variables:
precip (time, lat, lon) float32 ...