GeoJSON Service Help

CWAs

Location: /cgi-bin/json/CwaJSON.php

This script will create GeoJSON output using data from the ADDS database. The latest set of Center Weather Advisories are returned. Here is sample output:

{ "type": "FeatureCollection",
    "features": [
    { "type": "Feature",
      "id": "3709",
      "properties": {
          "data": "CWA",
          "cwsu": "ZNY", 
          "name": "New York", 
          "seriesId": "201", 
          "validTimeFrom": "2019-12-30T19:08:00Z", 
          "validTimeTo": "2019-12-30T20:00:00Z", 
          "hazard": "TS", 
          "qualifier": "ISOL", 
          "top": 34000, 
          "cwaText": "FAUS22 KZNY 301908\nZNY2 CWA 301908 \nZNY CWA 201 VALID UNTIL 302000\n
              28ESE ETX\nISOL TS DIAM 20NM MOV FROM 23050KT. TOPS TO FL340. IMPACTS TO THE W \n
              GATES OF N90.\n\n="
      },
      "geometry": {
          "type": "Polygon",
          "coordinates": [
              [[-75.12,40.57],[-75.08,40.56],[-75.05,40.56],[-75.01,40.54],
          [-74.98,40.53],[-74.95,40.51],[-74.93,40.48],[-74.91,40.46],
          [-74.90,40.43],[-74.90,40.40],[-74.90,40.37],[-74.91,40.34],
          [-74.93,40.32],[-74.95,40.29],[-74.98,40.27],[-75.01,40.26],
          [-75.05,40.24],[-75.08,40.24],[-75.12,40.23],[-75.16,40.24],
          [-75.19,40.24],[-75.23,40.26],[-75.26,40.27],[-75.29,40.29],
          [-75.31,40.32],[-75.33,40.34],[-75.34,40.37],[-75.34,40.40],
          [-75.34,40.43],[-75.33,40.46],[-75.31,40.48],[-75.29,40.51],
          [-75.26,40.53],[-75.23,40.54],[-75.19,40.56],[-75.16,40.56],
          [-75.12,40.57]]
          ]
      }
    },
    { "type": "Feature",
        "id": "3494",
        "properties": {
            "data": "CWA",
...

The properties output from the script are:

  • cwsu - ARTCC region identifier
  • name - Long name for the region
  • seriesId - Long name for the region
  • validTimeFrom - ISO 8601 formatted date and time when CWA is first valid
  • validTimeTo - ISO 8601 formatted date and time when CWA ends
  • hazard - TS (thunderstorms), TURB, ICE, IFR, PCPN (precipitation)
  • qualifier - hazard qualifier such as ISOL (isolated), SEV (severe), EMBD (embedded), etc
  • base - Lowest level the CWA is valid in feet
  • top - Lowest level the CWA is valid in feet
  • cwaText - Raw CWA text

The script can be passed parameters via command line or through CGI REQUEST. The parameters to the script include:

  • type=type - Specifies type of CWA to parse: ts, turb, ice, ifr, pcpn, all. Default is all.
  • top=### - Specifies top altitude in 100s feet for returned CWAs. The default is no top.
  • bottom=### - Specifies bottom altitude in 100s feet for returned CWAs. The default is no top.
  • level=### - Specifies a specific altitude in 100s feet for returned CWAs. The default is no top.
  • date=yyyymmddhhnn - This sets the date for the CWAs reports. This combined with the age returns all reports within that time range. The default is current time.
  • jsonp=callback - This sets the callback function to be used in a JSONP call. This is just when the script is called on another server. The default is null which outputs straight JSON.