| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Tools to load hydrographic data as pandas DataFrame with some handy methods for data pre-processing and analysis
This module can load SeaBird CTD (CNV), Sippican XBT (EDF), and Falmouth CTD (ASCII) formats.
conda install ctd --channel conda-forgepip install ctdand then,
import pandas as pd
import ctd
cast = pd.DataFrame.ctd.read_cnv('g01l06s01.cnv.gz')
downcast, upcast = cast.split()
fig, ax = downcast['t090C'].plot_cast()We can do better:
downcast, upcast = cast.split()
temperature = downcast['t090C']
fig, ax = plt.subplots(figsize=(5.5, 6))
temperature.plot_cast(ax=ax)
temperature.remove_above_water()\
.despike()\
.lp_filter()\
.press_check()\
.bindata()\
.smooth(window_len=21, window='hanning') \
.plot_cast(ax=ax)
ax.set_ylabel('Pressure (dbar)')
ax.set_xlabel('Temperature (°C)')| Back | FazBrowse Home | New Git URL |