NordicESMhub / NEGI-Abisko-2019

Climate science at high latitudes: eScience for linking Arctic measurements and modeling
https://nordicesmhub.github.io/NEGI-Abisko-2019/
Other
6 stars 33 forks source link

time issue with CanESM5_piControl since time spans ~thousands of years #109

Open stinsage opened 5 years ago

stinsage commented 5 years ago

@daliagachc

path_ctrl_tas = 'shared-cmip6-for-ns1000k/piControl/CanESM5/r1i1p1f1/tas_Amon_CanESM5_piControl_r1i1p1f1_gn*'
ctrl_tas = xr.open_mfdataset(path_ctrl_tas,combine='nested', concat_dim='time')

tas_test = zarray.check_transform_cftime_dim_2_timestamp(ctrl_tas)

Error message:
OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 5201-01-16 12:00:00
daliagachc commented 5 years ago

@stinsage i wrote a function that slices and changes the time. its in negi_stuff.modules.zarray.slice_and_convert_long_model_ds

make sure you update(pull) negi_stuff