To generate files that are compatible with thredds server, and be able to upload files to e.g. adc.met.no that is hosted on thredds, one needs to make the time variables 32 bit ints (which is ok if "seconds since" and the deployment time is not many 10s of years).
This can be done by exporting as the following for now (may need to expand to more time variables if there are more included in the future):
Looks like thredds servers do not accept int64 variables :( . I got an error message, and this seems similar to: https://stackoverflow.com/questions/48895227/output-int32-time-dimension-in-netcdf-using-xarray .
To generate files that are compatible with thredds server, and be able to upload files to e.g. adc.met.no that is hosted on thredds, one needs to make the time variables 32 bit ints (which is ok if "seconds since" and the deployment time is not many 10s of years).
This can be done by exporting as the following for now (may need to expand to more time variables if there are more included in the future):