Wondering what’s next for npm?Check out our public roadmap! »

    huracan

    0.3.0 • Public • Published

    huracan

    Monitor cyclones near Mexico shores

    % huracan --latest
    { location: [ 15.7, -125.4 ] }

    Examples:

    Open the latest advisory in geojson.io

    % huracan --latest --geojson | geojsonio

    Find the nearest coast to the hurricane

    % node lib/cli.js --nearest
    {"type":"Feature","geometry":{"type":"Point","coordinates":[-109.91000000000001,22.84000000000003]},"properties":{"name":"Cabo San Lucas"}}

    Install

    % npm install -g huracan

    Data attribution

    The breakpoints (coast line) dataset was downloaded from the NHC website at http://www.nhc.noaa.gov/gis/breakpoints/current/Breakpoints_2016.kmz.

    Then, converted to JSON:

    % node lib/cli.js --breakpoints data/Breakpoints_2016.kml | jsonlint > data/Breakpoints_2016.json

    To see a map of these breakpoints, run:

    % cat data/Breakpoints_2016.json | json-to-geo | nd-geojson | geojsonio

    Generated map can be found at https://github.com/rodowi/huracan/blob/master/data/Breakpoints_2016.geojson

    Install

    npm i huracan

    DownloadsWeekly Downloads

    5

    Version

    0.3.0

    License

    ISC

    Last publish

    Collaborators

    • avatar