Return to API Services.
Documentation for /json/spcoutlook.py
This service provides access to the Storm Prediction Center's Convective Outlook products. The service is designed to be called with a latitude and longitude point.
Changelog
- 2024-07-09: Add csv and excel output formats
- 2024-07-17: Fix problems with CSV and Excel output, sigh.
Example Usage
Get all the day 1 outlooks for Pierre, South Dakota. First in JSON, then CSV, and finally Excel.
https://mesonet.agron.iastate.edu/json/spcoutlook.py?lat=44.368&lon=-100.336&day=1 https://mesonet.agron.iastate.edu/json/spcoutlook.py?lat=44.368&lon=-100.336&day=1&fmt=csv https://mesonet.agron.iastate.edu/json/spcoutlook.py?lat=44.368&lon=-100.336&day=1&fmt=excel
Provide the day 1 outlook for Pierre, SD valid at 8 UTC on 3 Aug 2024
Get only the last day 2 outlook for Washington, DC
https://mesonet.agron.iastate.edu/json/spcoutlook.py?lat=38.907&lon=-77.037&day=2&last=1
CGI Arguments
The following table lists the CGI arguments that are accepted by this service. A HTTP GET request is required. Fields of type Multi-Params or CSV value can accept either a comma separated list or multiple parameter and value combinations. For example, ?foo=1&foo=2 is equivalent to ?foo=1,2.
Field | Type | Description |
---|---|---|
fmt | string | The format to return data in, either json, excel, or csv |
callback | string | JSONP Callback Name |
lat | number | Latitude of point in decimal degrees |
lon | number | Longitude of point in decimal degrees |
last | integer | Limit to last N outlooks, 0 for all |
day | integer | Day to query for, 1-8 |
time | string | Optional specification for a valid timestamp to query outlooks for. This is either a ISO8601 timestamp or 'current' for now. |
cat | string | Categorical or probabilistic |