Skip to content

Commit

Permalink
Update sbe_parser.py
Browse files Browse the repository at this point in the history
instances with just T,C in sbe37
  • Loading branch information
shaunwbell committed Oct 10, 2023
1 parent 8de4951 commit 10f15ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/EcoFOCIpy/io/sbe_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}')

Expand Down

0 comments on commit 10f15ed

Please sign in to comment.