I am having an issue with a netCDF I have, in which a coordinate named band with values in integers, actually means a time period (the original data were a bunch of ENVI files loaded with rioxarray, and then persisted as netCDF).
I want to map it as a datetime field, but I am struggling to make it work. Any suggestions?
You defined a new coordinate but it also created a new dimension instead of applying it to the “band” dimension. Initially I suggested Dataset.swap_dims() and Dataset.drop_dims(), but I didn’t get them to work. Actually Dataset.assign_dimension() should work to assign new time series values to the band dimension.