0.0.5 • Published 5 years ago

erddap-parser v0.0.5

Weekly downloads
4
License
BSD-3-Clause
Repository
github
Last release
5 years ago

erddap-parser

https://observablehq.com/@akbstone/test-from-erddap See where variable and variable_object are defined

API

createErddapUrl({
    erddap_server:'https://...',
    protocol:'tabledap',
    request: 'search' || 'data' || 'metadata', // default 'data'
    variables:['time','air_temperature',...],
    constraints = {
        'time>=': '2016-07-10T00:00:00Z',
        'time<=': '2017-02-10T00:00:00Z'
    },
    //optional
    variable_names:{
        erddap_variable:'output_key',
        air_temperature:'value
    }

})
  • searchTabledap(ob)
  • parseTabledapSearchResults(ob)
  • getTabledapData(ob)
  • getDatasetMetadata(ob)
  • parseDatasetMetadata(metadaCSV,ob)
  • parseTabledapData(dataCSV,ob)

NOTES

For updates to get picked up by erddap-realtime-app:

  • Bump package version
  • Run npm update from erddap-realtime-app
  • Would be fixed by using NPM to publish this

getting started

git clone ...
npm install .
npm test
npm start