gcmd-keywords

'JSON-formatted Global Change Master Directory (GCMD) Keywords'

Usage no npm install needed!

<script type="module">
  import gcmdKeywords from 'https://cdn.skypack.dev/gcmd-keywords';
</script>

README

gcmd-keywords

NPM Version Linux Build

JSON-formatted Global Change Master Directory (GCMD) Keywords

About

The keywords are formatted in a hierarchical tree. The keywords are pulled and formatted from the GCMD webservice using fetchGCMD.pl. More information on GCMD Keywords can be found here.

The following keyword schemes are included:

  • Earth Science and Earth Science Services
  • Instruments/Sensors
  • Platforms/Sources

Due to file size, the definitions are only included with the Earth Science and Earth Science Services keyword set. It is possible to obtain the definitions dynamically using the GCMD webservice (example). The hasDefinition property indicates keywords that have definitions assigned but not included in the JSON.

Format

{
  "uuid": "6c0e547e-70cc-47db-8c8c-97c5ba73f1da", //unique id
  "broader": "386ea533-9d98-4202-bad3-bb630ac39a93", //parent id
  "label": "Cameras",
  "definition": "Incididunt cillum enim laborum enim consectetur do officia.",
  "children": [{
    "label": "CBERS",
    "uuid": "efa1e3d9-c9b8-485d-ae7e-b4616040e4fd",
    "hasDefinition": 1, //displayed if a definition exists, but not included
    "broader": "6c0e547e-70cc-47db-8c8c-97c5ba73f1da"
  }]
}

Citation

Global Change Master Directory (GCMD). 2018. GCMD Keywords, Version 8.6. Greenbelt, MD: Global Change Data Center, Science and Exploration Directorate, Goddard Space Flight Center (GSFC) National Aeronautics and Space Administration (NASA). URL (GCMD Keyword Forum Page): http://earthdata.nasa.gov/gcmd-forum

Install

nodejs

npm install gcmd-keywords

Test

npm test

Usage

Node.js

//all lists
var gcmd = require ('gcmd-keywords');
//single lists
var sciencekeywords = require ('gcmd-keywords/resources/json/sciencekeywords.json');

POJO (jQuery)

$.ajax({
  method: "GET",
  url: "resources/json/sciencekeywords.json",
  dataType: "json"
});

License

GNU GPLv3