erddap的python接口
erddap的Python项目详细描述
erddapy
erddapy:erddap+Python。
目录
概述
更容易获得科学数据
erddapy利用erddap的restful web服务,为任何请求创建erddap url, 例如搜索数据集、获取元数据、下载数据等。
什么是ERDDAP? erddap统一了不同类型的数据服务器,并提供了以多种格式获取数据的一致方法。 有关erddap服务器的更多信息,请参见https://coastwatch.pfeg.noaa.gov/erddap/index.html。
安装
对于conda
用户,您可以
conda install --channel conda-forge erddapy
或者,如果您是pip
用户
pip install erddapy
注意,如果要安装requirements-dev.txt
,那么iris
包
在pypi上命名为scitools-iris
,因此pip
用户必须在安装之前重命名它。
示例
fromerddapyimportERDDAPe=ERDDAP(server='https://data.ioos.us/gliders/erddap',protocol='tabledap',)e.response='csv'e.dataset_id='whoi_406-20160902T1700'e.constraints={'time>=':'2016-07-10T00:00:00Z','time<=':'2017-02-10T00:00:00Z','latitude>=':38.0,'latitude<=':41.0,'longitude>=':-72.0,'longitude<=':-69.0,}e.variables=['depth','latitude','longitude','salinity','temperature','time',]df=e.to_pandas()
联系
报告错误、建议功能或查看GitHub上的源代码
许可证和版权
ERDDAPY根据BSD 3条款“新”或“修订”许可(BSD-3条款)获得许可。
在GitHub的https://github.com/ioos/erddapy上进行开发