将水文数据加载为数据框架的工具

ctd的Python项目详细描述


python ctd

DOIBuild StatusPyPIBuild statusLlicense

将水文数据加载为pandas数据框的工具,以及一些方便的方法 数据预处理和分析

这个模块可以加载SeaBird CTD (CNV)Sippican XBT (EDF), 以及Falmouth CTD (ASCII)格式。

快速介绍

conda install ctd --channel conda-forge
pip install ctd

然后,

importpandasaspdimportctdcast=pd.DataFrame.ctd.read_cnv('g01l06s01.cnv.gz')downcast,upcast=cast.split()fig,ax=downcast['t090C'].plot_cast()

Bad Processing

我们可以做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)')

Good Processing

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何使用MVC设计模式观察嵌套对象   java将多个客户端连接到服务器   合并Java Web应用程序   Spring Security中未捕获java AuthenticationSuccessEvent   java Firebase JSON到Arraylist内部的Arraylist,存在对象问题   在Java15的sealedclasses特性中,final类和非密封类之间有什么区别?   java我可以使用数组。copyOf制作二维数组的防御副本?   java球不会在屏幕上移动   Java类如何在同一个文件中包含两个类?   java使用“Character.isWhiteSpace”删除所有空白   java阻止在RealmList中保存时创建领域对象   如何仅在ConnectionFactory上使用Java JMS身份验证   spring可以强制java对象在运行时实现接口吗?   socket无法在JAVA中使用TCP启用双工模式通信