Hourly Precipitation

Overview

Provides hourly precipitation from the start of 2015 up to 7 days in the future.

By Location

Provides the total amount of precipitation within a user-defined timespan at a specific location. The location is represented by a latitude/longitude pair. Includes an hourly time series. The valid time of each element in the series defines the end of its hourly accumulation period.

GET /hourly-precipitation/{latitude}/{longitude}

Query String Parameters (Optional)

The default response contains results in millimeters for the next 24 hours.

Name Type Description Accepted Values / Range Example
start string start time start of 2015 to 7 days in the future 2015-06-01T00:00:00Z
end string end time start of 2015 to 7 days in the future 2015-06-01T03:00:00Z
unit string unit of measure inches, millimeters inches

Request Example

See Headers for request header details.

$ curl -X GET -G "https://insight.api.wdtinc.com/hourly-precipitation/35.482/-97.535" \
  -d start="2015-06-01T00:00:00Z" \
  -d end="2015-06-01T03:00:00Z" \
  -H "Accept: application/vnd.wdt+json; version=1" \
  --user <username>:<password>

Response Example

See Status Codes for response code details.

HTTP/1.1 200 OK
{
  "latitude": 35.482,
  "longitude": -97.535,
  "startTime": "2015-06-01T00:00:00Z",
  "endTime": "2015-06-01T03:00:00Z",
  "precipitation": 2.5,
  "unit": {
    "description": "millimeters",
    "label": "mm"
  },
  "series": [
    {
      "validTime": "2015-06-01T01:00:00Z",
      "value": 1.25,
      "products": [
        "skywise-1hr-precipitation-analysis"
      ]
    },
    {
      "validTime": "2015-06-01T02:00:00Z",
      "value": 0.25,
      "products": [
        "skywise-1hr-precipitation-analysis"
      ]
    },
    {
      "validTime": "2015-06-01T03:00:00Z",
      "value": 1.0,
      "products": [
        "skywise-1hr-precipitation-analysis"
      ]
    }
  ]
}

By Asset

Provides the total amount of precipitation within a user-defined timespan at the centroid of an asset, along with the area-weighted arithmetic mean and range of precipitation over that asset. Includes an hourly time series. Time series values are for the centroid of the asset.

GET /hourly-precipitation/{asset-uuid}

Query String Parameters (Optional)

The default response contains results for up to the next 24 hours.

Name Type Description Accepted Values / Range Example
start string start time start of 2015 to 7 days in the future 2015-06-01T00:00:00Z
end string end time start of 2015 to 7 days in the future 2015-06-01T03:00:00Z
unit string unit of measure inches, millimeters inches

Request Example

See Headers for request header details.

$ curl -X GET -G "https://insight.api.wdtinc.com/hourly-precipitation/fe68c33d-e718-4449-acae-351072ce7749" \
  -d start="2015-06-01T00:00:00Z" \
  -d end="2015-06-01T03:00:00Z" \
  -H "Accept: application/vnd.wdt+json; version=1" \
  --user <username>:<password>

Response Example

See Status Codes for response code details.

HTTP/1.1 200 OK
{
  "asset": "/assets/fe68c33d-e718-4449-acae-351072ce7749",
  "startTime": "2015-06-01T00:00:00Z",
  "endTime": "2015-06-01T03:00:00Z",
  "precipitation": 2.5,
  "accumulationStatistics": {
     "mean": 2.5,
     "maximum": 2.6,
     "minimum": 2.4
  },
  "unit": {
    "description": "millimeters",
    "label": "mm"
  },
  "contours": "/hourly-precipitation/fe68c33d-e718-4449-acae-351072ce7749/contours?start=2015-06-01T00:00:00Z&end=2015-06-01T03:00:00Z",
  "series": [
    {
      "validTime": "2015-06-01T01:00:00Z",
      "value": 1.2,
      "contours": "/hourly-precipitation/fe68c33d-e718-4449-acae-351072ce7749/contours?start=2015-06-01T00:00:00Z&end=2015-06-01T01:00:00Z",
      "assetStatistics": {
        "mean": 1.3,
        "maximum": 1.6,
        "minimum": 1.1
      },
      "products": [
        "skywise-1hr-precipitation-analysis"
      ]
    },
    {
      "validTime": "2015-06-01T02:00:00Z",
      "value": 0.3,
      "contours": "/hourly-precipitation/fe68c33d-e718-4449-acae-351072ce7749/contours?start=2015-06-01T01:00:00Z&end=2015-06-01T02:00:00Z",
      "assetStatistics": {
        "mean": 0.2,
        "maximum": 0.4,
        "minimum": 0.0
      },
      "products": [
        "skywise-1hr-precipitation-analysis"
      ]
    },
    {
      "validTime": "2015-06-01T03:00:00Z",
      "value": 1.0,
      "contours": "/hourly-precipitation/fe68c33d-e718-4449-acae-351072ce7749/contours?start=2015-06-01T03:00:00Z&end=2015-06-01T03:00:00Z",
      "assetStatistics": {
        "mean": 0.9,
        "maximum": 1.2,
        "minimum": 0.7
      },
      "products": [
        "skywise-1hr-precipitation-analysis"
      ]
    }
  ]
}

Contours By Asset

Provides a contoured representation (GeoJSON) of the total amount of precipitation within a user-defined timespan, clipped to an asset boundary.

GET /hourly-precipitation/{asset-uuid}/contours

Query String Parameters (Optional)

The default response contains results in millimeters for the next 24 hours.

Name Type Description Accepted Values / Range Example
start string start time start of 2015 to 7 days in the future 2015-06-01T00:00:00Z
end string end time start of 2015 to 7 days in the future 2015-06-01T03:00:00Z
unit string unit of measure inches, millimeters inches

Request Example

See Headers for request header details.

$ curl -X GET -G "https://insight.api.wdtinc.com/hourly-precipitation/fe68c33d-e718-4449-acae-351072ce7749/contours" \
  -d start="2015-06-01T00:00:00Z" \
  -d end="2015-06-01T03:00:00Z" \
  -H "Accept: application/vnd.wdt+json; version=1" \
  --user <username>:<password>

Response Example

See Status Codes for response code details.

HTTP/1.1 200 OK
{
  "asset": "/assets/fe68c33d-e718-4449-acae-351072ce7749",
  "startTime": "2015-06-01T00:00:00Z",
  "endTime": "2015-06-01T03:00:00Z",
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [ [-102.3555, 39.8420], [-99.8945, 39.8420], ... ]
        ]
      },
      "properties": {
        "precipitation": 2.0
      }
    },
    {
      "type": "Feature",
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [ [-102.3555, 39.8420], [-99.8945, 39.8420], ... ]
        ]
      },
      "properties": {
        "precipitation": 2.5
      }
    }
  ],
  "unit": {
    "description": "millimeters",
    "label": "mm"
  }
}