huracan

Monitor cyclones near Mexico shores

Usage no npm install needed!

<script type="module">
  import huracan from 'https://cdn.skypack.dev/huracan';
</script>

README

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