从geomac下载最新的火周
geomac-wildfires的Python项目详细描述
从Geomac下载Wildfire数据
安装
$ pipenv install geomac-wildfires
命令行用法
Usage: geomacwildfires [OPTIONS] COMMAND [ARGS]... A command-line interface for downloading wildfire data from NASA satellites. Returns GeoJSON. Options: --help Show this message and exit. Commands: active-fires Download latest active fire perimeter data from GeoMAC nifc-sitrep Download latest NIFC Sit Rep data from GeoMAC
从GEOMAC下载最新的现役火力周边数据。
$ geomacwildfires active-fires $ geomacwildfires nifc-sitrep
python用法
导入库。
>>> import geomac_wildfires
从GeoMAC下载一个活动火周的GeoJSON返回GeoJSON
>>> data = geomac_wildfires.get_active_fires()
从GeoMAC的NIFC Sit Rep下载一个活动火点的GeoJSON返回GeoJSON
>>> data = geomac_wildfires.get_nifc_sitrep()
贡献
安装开发依赖项。
$ pipenv install --dev
运行测试。:
$ make test
将新版本发布到pypi。
$ make ship
开发cli
命令行界面是使用click和setuptools实现的。要在本地安装它以便在虚拟环境中进行开发,请运行以下安装命令,如prescribed by the Click documentation。
$ pip install --editable .