Coder Social home page Coder Social logo

datadesk / calfire-wildfires Goto Github PK

View Code? Open in Web Editor NEW
8.0 6.0 6.0 543 KB

Download wildfires data from CalFire

Home Page: https://palewi.re/docs/calfire-wildfires/

License: MIT License

Python 100.00%
python wildfires data geojson journalism news data-journalism cli

calfire-wildfires's People

Contributors

actions-user avatar caseymm avatar dependabot[bot] avatar irisslee avatar palewire avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

calfire-wildfires's Issues

KeyError: 'incident_longitude'

$ pipenv run python
Python 3.6.10 (default, Dec 19 2019, 23:04:32) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import calfire_wildfires
>>> data = calfire_wildfires.get_active_fires()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/palewire/Code/calfire-wildfires/calfire_wildfires/__init__.py", line 44, in get_active_fires
    fires = get_fires()['features']
  File "/home/palewire/Code/calfire-wildfires/calfire_wildfires/__init__.py", line 32, in get_fires
    ) for r in tidy_reader]
  File "/home/palewire/Code/calfire-wildfires/calfire_wildfires/__init__.py", line 32, in <listcomp>
    ) for r in tidy_reader]
KeyError: 'incident_longitude'

Deprecate and delete the old CSV based fetching functions. They were supplanted by the JSON puller

I think @caseymm's upgrade to the JSON feed here made the older CSV functions obsolete. Looking at our private pipeline, the old functions appear to no longer be in use. If all that is right, a good next move here will be:

  • Delete the CSV based functions
  • Rename the JSON based function something plainer
  • Check if Calfire has any other new style feeds we can add while we're doing this
  • Update the documentation and testing to feature the JSON based functions
  • Rerelease a new version of the package

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.