Metadata-Version: 2.1
Name: geomac-wildfires
Version: 0.1.14
Summary: Download wildfires data from NIFC
Home-page: http://www.github.com/datadesk/geomac-wildfires
Author: Los Angeles Times Data and Graphics Department
Author-email: datagraphics@latimes.com
License: MIT
Project-URL: Maintainer, https://github.com/datadesk
Project-URL: Source, https://github.com/datadesk/geomac-wildfires
Project-URL: Tracker, https://github.com/datadesk/geomac-wildfires/issues
Project-URL: CI, https://travis-ci.org/datadesk/geomac-wildfires/
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: requests
Requires-Dist: fiona
Requires-Dist: geojson
Requires-Dist: click

geomac-wildfires
================

Download wildfires data from GeoMAC

.. image:: https://travis-ci.org/datadesk/geomac-wildfires.svg?branch=master
    :target: https://travis-ci.org/datadesk/geomac-wildfires

Installation
------------

::

    $ pipenv install geomac-wildfires


Command-line usage
------------------

::

    Usage: geomacwildfires [OPTIONS] COMMAND [ARGS]...

      A command-line interface for downloading wildfire perimeter data from
      GeoMAC. Returns GeoJSON.

    Options:
      --help  Show this message and exit.

    Commands:
      active-perimeters   Perimeters of active fires in a recent 24-hour period
      all-perimeters      Perimeters of all fires
      nifc-incidents      Fire incident points from NIFC situation reports


Download data from GeoMAC. ::

    $ geomacwildfires active-perimeters
    $ geomacwildfires all-perimeters
    $ geomacwildfires get-nifc-incidents


Python usage
------------

Import the library. ::

    >>> import geomac_wildfires
    >>> data = geomac_wildfires.get_active_perimeters()
    >>> data = geomac_wildfires.get_all_perimeters()
    >>> data = geomac_wildfires.get_nifc_incidents()


Contributing
------------

Install dependencies for development. ::

    $ pipenv install --dev

Run tests.::

    $ make test

Shipping new version to PyPI. ::

    $ make ship


Developing the CLI
------------------

The command-line interface is implemented using Click and setuptools. To install it locally for development inside your virtual environment, run the following installation command, as `prescribed by the Click documentation <https://click.palletsprojects.com/en/7.x/setuptools/#setuptools-integration>`_. ::

    $ pip install --editable .


