diff --git a/ARGOS_service_data_converter.py b/ARGOS_service_data_converter.py index ec261c3..d1a338f 100755 --- a/ARGOS_service_data_converter.py +++ b/ARGOS_service_data_converter.py @@ -479,6 +479,11 @@ def pandas2netcdf(df=None, ofile="data.nc",isxa=True): pass else: pass + + #xarray casting issue? + for var in xdf.variables: + if xdf[var].dtype == 'float64': + xdf[var] = xdf[var].astype('float32') #global attributes xdf.attrs["CREATION_DATE"] = datetime.now(timezone.utc).strftime("%B %d, %Y %H:%M UTC")