ctd-1.4.4
توضیحات
Tools to load hydrographic data into pandas DataFrame
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ctd-1.4.4 |
| نام | ctd |
| نسخه کتابخانه | 1.4.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Filipe Fernandes |
| ایمیل نویسنده | ocefpaf@gmail.com |
| آدرس صفحه اصلی | https://github.com/pyoceans/python-ctd |
| آدرس اینترنتی | https://pypi.org/project/ctd/ |
| مجوز | BSD-3-Clause |
# python-ctd
[](https://doi.org/10.5281/zenodo.11396)
[](https://github.com/pyoceans/python-ctd/actions/workflows/tests.yml)
[](https://pypi.python.org/pypi/ctd)
[](https://github.com/pyoceans/python-ctd/blob/main/LICENSE.txt)
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)](https://www.seabird.com/),
[Sippican XBT (EDF)](https://www.lockheedmartin.com/en-us/products/oceanographic-instrumentation.html),
and [Falmouth CTD (ASCII)](https://www.falmouth.com/) formats.
## Quick intro
You can install the CTD package with
```shell
conda install ctd --channel conda-forge
```
or
```shell
pip install ctd
```
and then,
```python
from pathlib import Path
import ctd
path = Path('tests', 'data', 'CTD')
fname = path.joinpath('g01l06s01.cnv.gz')
down, up = ctd.from_cnv(fname).split()
ax = down['t090C'].plot_cast()
```

We can do [better](https://www.go-ship.org/Manual/McTaggart_et_al_CTD.pdf):
```python
temperature = down['t090C']
fig, ax = plt.subplots(figsize=(5.5, 6))
temperature.plot_cast(ax=ax)
temperature.remove_above_water()\
.despike()\
.lp_filter()\
.press_check()\
.interpolate(method='index',
limit_direction='both',
limit_area='inside')\
.bindata(delta=1, method='interpolate')\
.smooth(window_len=21, window='hanning') \
.plot_cast(ax=ax)
ax.set_ylabel('Pressure (dbar)')
ax.set_xlabel('Temperature (°C)')
```

## Try it out on mybinder
[](https://mybinder.org/v2/gh/pyoceans/python-ctd/HEAD?labpath=notebooks)
نیازمندی
| مقدار | نام |
|---|---|
| - | chardet |
| >=3.3.0 | gsw |
| - | matplotlib |
| - | numpy |
| >=0.24.0 | pandas |
| >=0.1.2 | pandas-flavor |
| - | scipy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl ctd-1.4.4:
pip install ctd-1.4.4.whl
نصب پکیج tar.gz ctd-1.4.4:
pip install ctd-1.4.4.tar.gz