TDS: METAR Examples
Station String
Parameter(s) | Allowed value(s) | Example(s) | Description |
---|---|---|---|
stationString |
|
stationString=KDEN KSEA, PHNL&hoursBeforeNow=2 | obtain all available METARs for KDEN, KSEA and PHNL from the past two hours |
stationString | using partial icaoId name | stationString=KSEA KDE&hoursBeforeNow=3 | obtain METARs for KSEA and all icaoIds beginning with KDE (i.e. KDEN, KDEH, KDEW, ...etc.) from the past three hours |
stationString | using partial icaoId name and wildcard (*) | stationString=KSEA KDE*&hoursBeforeNow=1 | equivalent to above, obtain METARs for KSEA and all icaoIds beginning with KDE from the past hour |
stationString | using '@' and two-letter U.S. state (or two-letter Canadian province) abbreviation to obtain METARS for a state | stationString= @WA&hoursBeforeNow=1 | obtain METARs for all icaoIds from Washington state for the past hour |
stationString | stationString= @BC&hoursBeforeNow=1 | obtain METARs for all icaoIds from British Columbia, Canada for the past hour | |
stationString | using '~' and two-letter country abbreviation to obtain METARS for a country | stationString= ~au&hoursBeforeNow=1 | obtain METARs for all icaoIds from Australia for the past hour |
Time Range
Top ▲
Parameter(s) | Allowed Values | Example(s) | Description |
---|---|---|---|
startTime, endTime | start and end times in seconds since January 1, 1970 |
startTime=1732177446 &endTime=1732184646&stationString=PHTO |
obtain all METARs for PHTO collected between these start and end times |
startTime, endTime |
|
startTime= 2024-11-21T08:24:06Z &endTime= 2024-11-21T10:24:06Z &stationString=PHTO |
obtain all METARs for PHTO collected between these start and end times using ISO8601 date/time format, with UTC offset: YYYY-MM-DDThh:mm:ssZ. Please see W3C date/time formats. |
startTime, endTime |
|
startTime= 2024-11-21T 01:24:06+0700&endTime= 2024-11-21T 03:24:06+0700&stationString=PHTO | obtain all METARs for PHTO collected between these start and end times using ISO8601 date/time format, with local offset: YYYY-MM-DDThh:mm:ss+ hhmm. YYYY-MM-DDThh:mm:ss- hhmm. NOTE: Due to differences in character encodings by various web browsers, the + might get encoded to a whitespace. To avoid this from occurring, use %2B in place of the +. Please see W3C date/time formats. |
hoursBeforeNow |
|
stationString=KDEN& hoursBeforeNow=3 | obtain all METARs collected in the last three hours for KDEN |
hoursBeforeNow | stationString=KDEN& hoursBeforeNow=1.5 | obtain all METARs collected in the last hour and a half for KDEN |
Most Recent
Top ▲
Parameter(s) | Allowed Value(s) | Example(s) | Description |
---|---|---|---|
mostRecent |
|
hoursBeforeNow=3& mostRecent=true& stationString=PHNL KSEA |
of all METARS corresponding to PHNL and KSEA, obtain the single most recent METAR from the past three hours. Only one METAR is returned. |
Most Recent for each Station
Top ▲
Parameter(s) | Allowed Values | Example(s) | Description |
---|---|---|---|
mostRecentForEachStation |
See the 1.3 Release Notes for details
|
mostRecentForEachStation =constraint &hoursBeforeNow=1.25 &stationString=KDE | use the constraint method to retrieve the most recent METAR for all KDE* stations that were reported in the past hour and fifteen minutes. Note: this is not appropriate for historical data retrieval. |
mostRecentForEachStation | startTime=1732177446& endTime=1732184646 &stationString=PHTO, PHKO, KSEA, KSFO& mostRecentForEachStation =postfilter | obtain the METARS for PHTO, PHKO, KSEA and KSFO from the indicated
start and end times, using the postfilter method. Return only the most recent for each of these stations within the time range. There should be a total of four results, one result each for PHTO, PHKO, KSEA and KSFO. | |
mostRecentForEachStation | startTime=1732177446& endTime=1732184646 &stationString=PHTO, PHKO, KSEA, KSFO& mostRecentForEachStation =true | same as above, this defaults to the postfilter method to obtain the most recent METARs for PHTO, PHKO, KSEA and KSFO. |
NOTE: See the 1.3 Release Notes for details on the difference between the mostRecentForEachStation types.
Lon-Lat Rectangle
Top ▲
Parameter(s) | Allowed Values | Example(s) | Description |
---|---|---|---|
minLat, minLon, maxLat, maxLon |
|
minLat=25&minLon=-130& maxLat=65&maxLon=-40& hoursBeforeNow=3 | obtain METARs collected within the last 3 hours for a rectangular region (bounding box) defined by the min and max lon and lat |
- The LonLatRect constraint can accommodate situations where the bounding box crosses the International Date Line
- The LonLatRect constraint does not support bounding boxes that encompass a pole.
Radial Distance
Top ▲
Parameter(s) | Allowed Values | Example(s) | Description |
---|---|---|---|
radialDistance |
|
radialDistance=20;-104.65,39.83& hoursBeforeNow=3 | obtain METARs collected within the last 3 hours for all the stations within 20 statute miles of -104.65,39.83 (KDEN) |
Flight Path
Top ▲
Parameter(s) | Allowed Values | Example(s) | Description |
---|---|---|---|
flightPath |
|
flightPath=57.5; -125.27,49.95; -104.65,39.83 &hoursBeforeNow=3 | obtain all METARS collected in the past 3 hours for the flight path from Campbell River, BC to Denver, CO using a 57.5 statute mile maximum distance |
flightPath | flightPath=57.5; -125.27,49.95; -104.65,39.83 | same as above, except using the default time range of hoursBeforeNow=1 | |
flightPath | flightPath=57.5; -104.65,39.83; -97.5,27.77; -81.33,28.42; -73.15,44.47 | A flight path from Denver,Co to Corpus Cristi, Tx to Orlando, Fl to Burlington, Vt using the default time range and a 57.5 statute mile maximum distance. | |
flightPath | flightPath=57.5; KDEN; -97.5,27.77; KMCO; -73.15,44.47 | Same as above, except the station name for Denver and Orlando are employed, rather than their lon,lat values. |
NOTE:
Flight path results are sorted by distance along the flight path from origin to destination.
The flight path constraint does not support the following situations:
- flight paths that cross the poles
- flight paths that cross the International Date Line.
Density
Top ▲
Parameter(s) | Allowed Values | Example(s) | Description |
---|---|---|---|
minDegreeDistance | 0 < any value <90 The degree distance is the distance (based on longitude and latitude) between stations. The larger the value of minDegreeDistance, the less dense the results. Duplicate stations are filtered and the most recent of duplicate stations is reported. |
flightPath=157.5; KDEN; KMCO& minDegreeDistance=50 | obtain all METARS collected in the past 3 hours for the flight path from Denver, CO to Orlando, FL using a 157.5 statute mile maximum distance and requesting a lower density of results. |
minDegreeDistance | 0 < any value <90 The degree distance is the distance (based on longitude and latitude) between stations. The larger the value of minDegreeDistance, the less dense the results. Duplicate stations are filtered and the most recent of duplicate stations is reported. |
flightPath=157.5; KDEN; KMCO& minDegreeDistance=1 | obtain all METARS collected in the past 3 hours for the flight path from Denver, CO to Orlando, FL using a 157.5 statute mile maximum distance and requesting a higher density of results. |
Field Parameters
Top ▲
Parameter(s) | Allowed Values | Example(s) | Description |
---|---|---|---|
fields |
|
flightPath=57.5; -125.27,49.95; -104.65,39.83 &hoursBeforeNow=3 &fields=sky_cover, cloud_base_ft_agl, elevation_m, vert_vis_ft | obtain all METARS collected in the past 3 hours for the flight path Campbell River, BC to Denver, CO using a 57.5 statute mile maximum distance. Only the available sky cover, cloud base, elevation and vertical visibility results are returned. |