Use the local cache file for float 5903891 that drifted around ocean station Papa. It's the file that was produced for compare_oxygen_calibrations.ipynb.
In [1]:
from biofloat import ArgoData, converters
from os.path import join, expanduser
ad = ArgoData(cache_file=join(expanduser('~'),'6881StnP_5903891.hdf'), verbosity=2)
In [2]:
wmo_list = ad.get_cache_file_all_wmo_list()
df = ad.get_float_dataframe(wmo_list)
Show top 5 records.
In [3]:
df.head()
Out[3]:
Remove NaNs and apply the gain factor from compare_oxygen_calibrations.ipynb.
In [4]:
corr_df = df.dropna().copy()
corr_df['DOXY_ADJUSTED'] *= 1.12
corr_df.head()
Out[4]:
Convert to ODV format and save in a .txt file.
In [5]:
converters.to_odv(corr_df, '6881StnP_5903891.txt')
Import as an ODV Spreadsheet and use the tool.
In [6]:
from IPython.display import Image
Image('../doc/screenshots/Screen_Shot_2015-11-25_at_1.42.00_PM.png')
Out[6]: