From 0b5de63dd635ffc4ce205a99f98639e77bd59583 Mon Sep 17 00:00:00 2001 From: shaunwbell Date: Tue, 10 Oct 2023 13:00:17 -0700 Subject: [PATCH] Update sbe_parser.py (#272) instances with just T,C in sbe37 --- src/EcoFOCIpy/io/sbe_parser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/EcoFOCIpy/io/sbe_parser.py b/src/EcoFOCIpy/io/sbe_parser.py index 5f561d7..5ae5d6c 100644 --- a/src/EcoFOCIpy/io/sbe_parser.py +++ b/src/EcoFOCIpy/io/sbe_parser.py @@ -185,6 +185,8 @@ def parse(filename=None, return_header=True, datetime_index=True): rawdata_df.columns = ['temperature','conductivity','pressure','salinity','date','time'] elif len(rawdata_df.columns) == 5: #T,C,S or maybe T,C,P rawdata_df.columns = ['temperature','conductivity','salinity','date','time'] + elif len(rawdata_df.columns) == 4: #T,C + rawdata_df.columns = ['temperature','conductivity','date','time'] else: sys.exit(f'Unknown number of columns in raw data {len(rawdata_df.columns)}')