@datafire/nsidc

6.0.0 • Public • Published

@datafire/nsidc

Client library for NSIDC Web Service Documentation Index

Installation and Usage

npm install --save @datafire/nsidc
let nsidc = require('@datafire/nsidc').create();

.then(data => {
  console.log(data);
});

Description

This API allows programmers to build National Snow and Ice Data Center data and metadata services into their applications.

Actions

facets

In the NSIDC Search and Arctic Data Explorer interfaces, this endpoint is used in conjunction with /OpenSearch whenever a user submits a new search. Consequently, it has the same parameters as /OpenSearch.

nsidc.facets({}, context)

Input

  • input object
    • searchTerms string: URL-encoded keyword or keywords desired by the client; OpenSearch 1.1
    • count integer: The number of search results per page desired by the client; OpenSearch 1.1
    • startIndex integer: First search result desired by the search client; OpenSearch 1.1
    • spatial string: 4 comma separated values - W, S, E, N; OpenSearch-Geo 1.0, "box" parameter
    • sortKeys string (values: score,,desc, spatial_area,,asc, spatial_area,,desc, temporal_duration,,asc, temporal_duration,,desc, updated,,desc): Sort the results by most relevant (default), smallest or largest spatial area, shortest or longest temporal duration, or most recently updated; partial implementation of OpenSearch SRU 1.0
    • startDate string: The start date in yyyy-mm-dd format
    • endDate string: The end date in yyyy-mm-dd format
    • facetFilters string: Describes faceted restrictions on the search. A URL-encoded JSON object where the keys are the names of the facet, and the values are arrays of the selected facet values
    • source string (values: NSIDC, ADE): Custom parameter for selecting which source to use; the Arctic Data Explorer (ADE) uses data aggregated from many sources, including, but not limited to, NSIDC

Output

  • output string

OpenSearch.get

This endpoint uses parameters from the OpenSearch 1.1 specification, as well as parameters from the OpenSearch Geo (1.0) and SRU (1.0) extensions.

nsidc.OpenSearch.get({}, context)

Input

  • input object
    • searchTerms string: URL-encoded keyword or keywords desired by the client; OpenSearch 1.1
    • count integer: The number of search results per page desired by the client; OpenSearch 1.1
    • startIndex integer: First search result desired by the search client; OpenSearch 1.1
    • spatial string: 4 comma separated values - W, S, E, N; OpenSearch-Geo 1.0, "box" parameter
    • sortKeys string (values: score,,desc, spatial_area,,asc, spatial_area,,desc, temporal_duration,,asc, temporal_duration,,desc, updated,,desc): Sort the results by most relevant (default), smallest or largest spatial area, shortest or longest temporal duration, or most recently updated; partial implementation of OpenSearch SRU 1.0
    • startDate string: The start date in yyyy-mm-dd format
    • endDate string: The end date in yyyy-mm-dd format
    • facetFilters string: Describes faceted restrictions on the search. A URL-encoded JSON object where the keys are the names of the facet, and the values are arrays of the selected facet values
    • source string (values: NSIDC, ADE): Custom parameter for selecting which source to use; the Arctic Data Explorer (ADE) uses data aggregated from many sources, including, but not limited to, NSIDC

Output

  • output string

OpenSearchDescription.get

Describes the web interface of NSIDC's data search engine

nsidc.OpenSearchDescription.get(null, context)

Input

This action has no parameters

Output

  • output string

id

In NSIDC Search and the Arctic Data Explorer, this endpoint is queried whenever the user types into the search terms box, and the returned suggestions are displayed in a dropdown beneath the search terms box. The q parameter and returned JSON follow the specifications of the OpenSearch Suggestions 1.0 extension.

nsidc.id({
  "q": "",
  "source": ""
}, context)

Input

  • input object
    • q required string: Search terms typed into the interface (minimum two characters)
    • source required string (values: NSIDC, ADE): Custom parameter for selecting which source to use; the Arctic Data Explorer (ADE) uses data aggregated from many sources, including, but not limited to, NSIDC

Output

  • output string

Definitions

This integration has no definitions

Readme

Keywords

none

Package Sidebar

Install

npm i @datafire/nsidc

Weekly Downloads

3

Version

6.0.0

License

MIT

Unpacked Size

16.3 kB

Total Files

4

Last publish

Collaborators

  • datafire