从noaa卫星下载野火数据
noaa-wildfires的Python项目详细描述
从noaa卫星下载野火数据
安装
$ pipenv install noaa_wildfires
命令行用法
Usage: noaawildfires [OPTIONS] COMMAND [ARGS]... A command-line interface for downloading wildfires data from NOAA. Returns GeoJSON. Options: --help Show this message and exit. Commands: hms-fires The latest fires from Hazard Mapping System satellites hms-smoke The latest smoke data from Hazard Mapping System satellites
从危险地图系统卫星下载最新的火灾信息。
$ noaawildfires hms-fires
从危险地图系统卫星下载最新的烟雾数据。
$ noaawildfires hms-smoke
python用法
导入库。
>>> import noaa_wildfires
从危险地图系统卫星下载最新的火灾信息
>>> data = noaa_wildfires.get_hms_fires()
从危险地图系统卫星下载最新的烟雾数据
>>> data = noaa_wildfires.get_hms_smoke()
贡献
安装开发依赖项
$ pipenv install --dev
运行测试
$ make test
将新版本发布到pypi
$ make ship
开发cli
命令行界面是使用click和setuptools实现的。要在本地安装它以便在虚拟环境中进行开发,请运行以下安装命令,如prescribed by the Click documentation。
$ pip install --editable .