Giter Club home page Giter Club logo

frostline's Introduction

Frostline

A parser for USDA plant hardiness zones. That data is provided in bulk by the PRISM Climate Group at Oregon State University. This combines the four bulk files with ZIP location data, and creates a JSON file for each ZIP, functioning as a static API.

Note that not every U.S. ZIP code is part of this dataset. The source data, provided by PRISM, simply does not include every ZIP.

The resulting data is used to create an API at phzmapi.org, in format ZIPCODE.json, e.g. https://phzmapi.org/20001.json.

Map of the U.S.

(Per PRISM Climate Group's Terms of Service, note that the above map is not the official USDA Plant Hardiness Zone Map.)

Run It Yourself

./frostline.py

Map The Data

You can generate a nice interactive map of the data. First convert the data to GeoJSON:

node map.js

This creates map.geojson. Then view map.html in a browser. You will need to serve the map on a simple web server (not at a file:// URL) so that it can access the GeoJSON file on disk (file:// URLs block access to other files). That was used by Josh Tauberer to generate the above map.

Plant Hardiness Zones

This is the national standard for knowing which plants will grow where. It’s determined based on the average annual minimum temperature over the prior 30 years, with each zone comprising a 10°F band. There are 26 zones in all. The standard was developed by the U.S., but other countries have adopted the same standard. Companies that sell plants, seeds, roots, and bulbs (e.g., Burpee) use these zones to help customers understand what will thrive in their area, and to decide when to ship orders to help them to thrive. For more information, see the Wikipedia entry or the USDA’s explanation.

frostline's People

Contributors

joshdata avatar waldoj avatar

Watchers

 avatar  avatar

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.