SOCIB RAMADDA Data Repository
Time Series JSON Format
Previous: Point Data Access API Next: RAMADDA Record Package Table of contents
Point Data Documentation
 
4.5 Time Series JSON Format
One of the point data formats provided by RAMADDA is JSON. The JSON is accessed through the point data API,
/repository/point/json?entryid=<entry id>&numpoints=500
If numpoints is specified then RAMADDA will set a skip factor when processing the data and decimate the results to approximate the numpoints. Example on RAMADDA

The call returns a map with a name, a list of the data fields provided and a set of data records.

{
    "name": "name of the data",
    "fields": [list of field definitions],
    "data": [list of data records]
}
Where a field definition is as follows. These properties correspond to the field properties in the text data facility.
{
    "index":0,
    "id":"field1",
    "label":"Field 1",
    "type":"double",
    "missing":-999.0,
    "unit":"m"
}

Each data record has geolocation, date and a set of values:

{
     "latitude":-64.77,
     "longitude":-64.06,
     "elevation":45, 
     "date":null,
     "values":[8.0,1000]
}
Putting it all together:
testpoint1.json
{"fields":[
           {"index":0,
          "id":"field1",
          "label":"Field 1",
          "type":"double",
           "missing":"-999.0",
           "unit":"m"},
          {"index":1,
          "id":"field2",
          "label":"Field 2",
          "type":"double",
           "missing":"-999.0",
           "unit":"m"}
         ]
,"data": [
               {"values":[8.0,1000]},
               {"values":[9.0,1500]},
               {"values":[10.0,2000]}
               ]
}

And adding geospatial and temporal information to the records:
testpoint2.json
{"fields":[
{"index":0,
          "id":"field1",
          "label":"Field 1",
          "type":"double",
           "missing":"-999.0",
           "unit":"m"},
           {"index":1,
          "id":"field2",
          "label":"Field 2",
          "type":"double",
           "missing":"-999.0",
           "unit":"m"}
         ]
,"data": [
               {"latitude":-64.77,"longitude":-64.06,"elevation":45, "date":null,"values":[8.0,1000]},
               {"latitude":-54.77,"longitude":-54.06,"elevation":45, "date":null,"values":[9.0,1500]},
               {"latitude":-54.77,"longitude":-54.06,"elevation":45, "date":null,"values":[10.0,2000]}
        
               ]
}

 

Previous: Point Data Access API Next: RAMADDA Record Package Table of contents

Powered by Geode Systems and RAMADDA