Get observation statistics.

Query Index:

Observations statisctics as JSON

Method: GET
URI
/observation/stats?typeID=(typeID)&siteID=(siteID)&[days=int]&[methodID=(methodID)]
Accept
application/json;version=1

Query Parameters

Required:
siteID
Site identifier e.g., WI000.
typeID
A type identifier for observations e.g., e.
Optional:
days
The number of days of data to select before now e.g., 250. Maximum value is 365000.
methodID
A valid method identifier for observation type e.g., doas-s. typeID must be specified as well.

Response Properties

First
The date time, value, and error for the first observation.
Last
The date time, value, and error for the last observation.
Mean
The statistical average of the observations.
Minimum
The date time, value, and error for the minimum observation.
StddevPopulation
The population standard deviation of the observations.
Unit
The unit of the observations.
maximum
The date time, value, and error for the maximum observation.

Example Query and Response

http://fits.geonet.org.nz/observation/stats?typeID=e&siteID=HOLD&
{
     "First": {
       "DateTime": "2007-03-16T11:59:00Z",
       "Error": 4.75,
       "Value": 93.85
     },
     "Last": {
       "DateTime": "2016-09-04T11:59:00Z",
       "Error": 3.35,
       "Value": -111.47
     },
     "Maximum": {
       "DateTime": "2007-03-18T11:59:00Z",
       "Error": 2.39,
       "Value": 105.49
     },
     "Mean": -0.003536903039073806,
     "Minimum": {
       "DateTime": "2016-09-04T11:59:00Z",
       "Error": 3.35,
       "Value": -111.47
     },
     "StddevPopulation": 58.37241024287652,
     "Unit": "mm"
   }