Skip to content

Commit

Permalink
Update ARGOS_service_data_converter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunwbell committed Dec 10, 2024
1 parent c81fffc commit f706ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ARGOS_service_data_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def pandas2netcdf(df=None, ofile="data.nc",isxa=True):
#xarray casting issue?
for var in xdf.variables:
if xdf[var].dtype == 'float64':
xdf[var] = xdf[var].astype('float')
xdf[var] = xdf[var].astype('int')

#global attributes
xdf.attrs["CREATION_DATE"] = datetime.now(timezone.utc).strftime("%B %d, %Y %H:%M UTC")
Expand Down

0 comments on commit f706ea6

Please sign in to comment.