Return to API Services. This service is the backend for the Climodat Download frontend.
Documentation for /cgi-bin/request/coop.py
This service is somewhat poorly named coop.py, but is providing the IEM Climodat data, which is a combination of NWS COOP and NWS ASOS/AWOS data. There are a number of knobs here as this is one of the most popular datasets the IEM produces.
Changelog
- 2024-06-22: Initital documentation and backend conversion to pydantic.
Example Requests
Provide the Iowa areal average data for 2020 in Excel format
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 |
|---|---|---|
| delim | string | The delimiter to use in the output file. Options: comma, tab, space |
| gis | boolean | Include latitude and longitude cols in the output. |
| inclatlon | boolean | Include latitude and longitude cols in the output. |
| model | string or null | The model to use for output. Options: simple, apsim, century, daycent, salus, dndc, swat. Specifying this will override the 'vars' option. |
| network | string | IEM network identifier. Typically a combination of a US state abbreviation and a network classification, ie IA_ASOS. |
| scenario | boolean | Should data from a previous year, specified by scenario_year be used to fill out the present year. |
| scenario_year | integer | The year to use as a scenario year, if scenario is true. |
| station | Multi-Params or CSV value | List of stations to include in the output. |
| stations | Multi-Params or CSV value | List of stations to include in the output. Legacy variable name. |
| vars | Multi-Params or CSV value | List of variables to include in the output. |
| what | string | The type of output to generate. |
| with_header | boolean | Include a header row in the output. |
| year1 | integer | The starting year for the data request. |
| month1 | integer | The starting month for the data request. |
| day1 | integer | Day of the month |
| year2 | integer | The ending year for the data request. |
| month2 | integer | The ending month for the data request. |
| day2 | integer | Day of the month |