From c9d83256da0883fe890dd10ab0eb7278bdefa5f1 Mon Sep 17 00:00:00 2001 From: shaunwbell Date: Tue, 10 Dec 2024 14:49:04 -0800 Subject: [PATCH] Update ARGOS_service_data_converter.py --- ARGOS_service_data_converter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ARGOS_service_data_converter.py b/ARGOS_service_data_converter.py index 3a8b05c..ab1d6c8 100755 --- a/ARGOS_service_data_converter.py +++ b/ARGOS_service_data_converter.py @@ -466,10 +466,10 @@ def pandas2netcdf(df=None, ofile="data.nc",isxa=True): xdf = df.rename(columns={'year_doy_hhmm':'time'}).to_xarray() try: - df['checksum'] = df['checksum'].astype(bool) + df['checksum'] = df['checksum'].astype("bool") except: pass - + #rename variables and add attributes drop_missing = True