Load AquapHOx-L data and recalculate dissolved oxygen with different salinityΒΆ

[ ]:
from pyrotoolbox import parse
%matplotlib inline
from pyrotoolbox.oxygen import hPa_to_mgL
[3]:
# Load AquapHOx-L data
df, m = parse('AphoxData/21270013.txt')
[8]:
# Convert hPa to mg/L for a salinity of 32 g/L
[9]:
hPa_to_mgL(df['oxygen_hPa'], df['sample_temperature'], 32)
[9]:
date_time
2024-07-04 11:21:14    7.796528
2024-07-04 11:21:44    7.804866
2024-07-04 11:22:14    7.803978
2024-07-04 11:22:44    7.860132
2024-07-04 11:23:14    7.687174
                         ...
2024-07-04 19:33:44    7.388505
2024-07-04 19:34:14    7.383316
2024-07-04 19:34:44    7.377246
2024-07-04 19:35:14    7.366197
2024-07-04 19:35:44    7.359155
Length: 990, dtype: float64