Return to API Services
Documentation for /json/stage4.py
This emits hourly precipitation data from the Stage IV precipitation dataset for a given date, which defaults to UTC, but can be specified by the given tz parameter. Please note that this is not a pure stage IV service, but includes some bias correcting that the IEM does against PRISM.
Changelog
- 2024-08-19: Added support for tz parameter
Example Usage
Provide hourly stage IV estimates for 13 August 2024 for 102.3W, 45.1N for a date in US/Central timezone.
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 |
|---|---|---|
| callback | string or null | Legacy JSON-P style callback. It is likely best to not depend on this usage. The IEM website has a permissive CORS. |
| lat | number (required) | Latitude (decimal degrees) of point of interest |
| lon | number (required) | Longitude (decimal degrees) of point of interest |
| valid | string (required) | Valid date of data |
| tz | string | A time zone string specified by IANA. Common examples include 'America/Chicago', 'UTC', and 'Etc/UTC'. The code implementation passes this provided string to the python ZoneInfo library. |