Thursday, July 4, 2013

Spot GRIB Request

saildocs provides support for the Spot GRIB requests. Spot requests returns forecasts for a given location. Let's say you just dropped the hook, and you want to know what your night is going to look like...
If you send an email to query@saildocs.com, with a body like this:

 send spot:37.5N,122.5W|5,3|PRMSL,WIND,RAIN
, you will receive a response like that one:

Data extracted from file gfs130704-12z.grb dated 2013/07/04 16:52:56
request code: spot:37.5N,122.5W|5,3|PRMSL,WIND,RAIN

Forecast for 37°30N 122°30W (see notes below)
Date  Time  PRESS  WIND DIR RAIN
        utc    hPa  kts deg mm/h
----------- ------ ----- --- ----
07-05 00:00 1005.7  9.8 288  0.0
07-05 03:00 1005.7  11.5 297  0.0
07-05 06:00 1006.8  12.9 302  0.0
07-05 09:00 1006.7  13.0 303  0.0
07-05 12:00 1006.7  12.6 303  0.0
07-05 15:00 1007.0  11.7 299  0.0
07-05 18:00 1007.7  10.3 280  0.0
07-05 21:00 1007.2  11.4 270  0.0
... etc
This is "human readable", as they call it, but not that catchy, hey?
The cool thing is that this content can be parsed, using basic regular expressions.
If you drop the content of the request's response in the box below, you will have a chance to render it visually.
See in full
The browser you use must support HTML5 for that.

No comments: