3 Ordering Data API - Reference Documentation
Authors: John Cartwright, Peter Elespuru, John LaRocque, Heather McCullough, Evan McQuinn, David Neufeld, Robert Prentice, Anju Shah, Ken Tanaka, Lisa Taylor, Richard Fozzard, Martin Aubrey
Version: 1.13.5+23
3 Ordering Data API
Basic Order Creation
To create an order,POST
a set of JSON data to
https://www.ngdc.noaa.gov/next-web/rest/orders
{ "email":"sam.spade@noaa.gov", "items":[ {"dataset":"Multibeam", "geometry": "geometry criteria" } ] }
{ "id":63, "dateCreated":"'2012-05-23 16:15:23.0'", "lastUpdated":"'2012-05-23 16:16:11.0'", "startTime":"'2012-05-23 16:15:38.0'", "endTime":"'2012-05-23 16:15:39.0'", "elapsedTime":1000, "status":"NOTIFIED", "datasetCount":1, "errorCount":0, "url":"'https://www.ngdc.noaa.gov/next-delivery/next1337811323154/next1337811323154.tar.gz'", "items":[ {"dataset":"Multibeam","url":"'https://www.ngdc.noaa.gov/next-web/item?id=64'"} ] }
3.1 Filtering Orders
Orders can be filtered based upon a number of different criteria, though all contain the "dataset" criterion to identify the dataset associated with each item. Not all data sets will honor all the criteria, but subsets of common criteria do apply to multiple datasets.Each data set and the criteria they support are listed below.MGG Multibeam Bathymetric Data
- time: supported by parameters startYear and endYear, to bound the time
- bounding box (spatial): supported by a geometry parameter specified in the format
minx,miny,maxx,maxy
using decimal degrees. - ship: supported by a platforms parameter set to ship name (case-sensitive)
- survey: supported by a surveys parameter set to survey name (case-sensitive)
MGG Trackline Data
Parameter | Description | Example |
---|---|---|
survey | Each survey is identifiable by a survey ID string. This criteria, if specified, consists of one or more comma-separated survey IDs. (NOTE: the catalog uses 'surveyIds' for this same criterion.) | surveyId=CK77-1 |
surveyType | Survey type indicates datatypes of interest. This criterion, if specified, consists of one or more comma-separated data/survey types (see below). (NOTE: the catalog uses 'surveyTypes' for this same criterion.) | surveyType=Gravity |
platform | Platform indicates the name of the mobile platform (e.g.: ship) that collected data. This criterion, if specified, consists of the names of one or more data platforms. (NOTE: the catalog uses 'platforms' for this same criterion.) | platform=Acheron |
institution | Each survey has a sponsoring institution. This criterion, if specified, consists of one or more comma-separated (short) sponsoring institution names. (NOTE: the catalog uses 'institutions' for this same criterion.) | institution=Oregon State U |
startYear | This criterion specifies part of a time range. Surveys intersecting this time range are returned (i.e.: not ending before this year). | startYear=1984 |
endYear | This criterion specifies part of a time range. Surveys intersecting this time range are returned (i.e. not starting after this year). | endYear=1986 |
firstDateAdded | Surveys are added to the database at a specific time. This criterion, if specified indicates the start of that range "yyyy-mm[-dd]". | firstDateAdded=2004 |
lastDateAdded | Surveys are added to the database at a specific time. This criterion, if specified indicates the start of that range "yyyy-mm[-dd]". | lastDateAdded=2005 |
geometry | This criterion limits response surveys to those within a specified geographical bounding box, specified as a list of coordinates (lon_min,lat_min,lon_max,lat_max). It also crops the returned trackline points within each survey to those that lie within the specified bounding box. | geometry=-159.91,-21.18,-156.51,-18.74 |
format | Supported format options are M77T and XYZ. When using XYZ a zParam should be specified | format=XYZ |
includeAncillary | If set to true, then an order includes ancillary files that are associated with surveys found based on various selection criteria. Otherwise, only point data is included. | includeAncillary=true |
selections | This parameter is a comma-separated list of strings that override other selection criteria to include particular surveys and categories of ancillary files. Each element is either of the form "surveyId:Trackline:Points" to represent a survey's point data, or of the form "surveyId:category:subcategory" to represent a subset of the ancillary files associated with the survey. If this parameter is specified, then it is used with includeAncillary to determine the content of the order, ignoring other criteria. | selections=CK77-1:Trackline:Points |
zParam | Description |
---|---|
BAT_TTIME | Bathymetric 2-way Travel Time |
NCORR_DEPTH | Bathymetric Corrected Depth |
MAG_TOT | Magnetic Total Field 1 |
MAG_TOT_2 | Magnetic Total Field 2 |
MAG_RES | Magnetic Residual Field |
MAG_DI_CORR | Magnetic Diural Corrected |
GRA_OBS | Gravity Observed |
EOTVOS | Gravity Eotvos Corrected |
FREEAIR | Gravity Free Air |
UNCORR_DEPTH | Uncorrected depth calculated as (BAT_TTIME X 1500) / 2 X (-1) |
- file format: supported by a format parameter. The value must be one of the following: M77T, XYZ.
- survey name(s): supported by a survey parameter. May include multiple survey names in a comma-delimited list.
- survey type(s): supported by a surveyType parameter. The following values are recognized:… May include multiple survey types in a comma-delimited list.
- platform(s): supported by a platform parameter, for name of ship, vessel, iceberg, etc. May include multiple platform names in a comma-delimited list.
- institution(s): supported by an institution parameter. May include multiple institution names in a comma-delimited list.
- start year: supported by a startYear parameter. Must be a four digit year.
- end year: supported by an endYear parameter. Must be a four digit year.
- date added: The date range in which the survey was added to the dataset. Supported by a firstDateAdded parameter and lastDateAdded parameter. The value should be a date string in one of the following formats: yyyy '-' MM ['-' dd] OR yyyy '-' DDD.
- bounding box (spatial): supported by a geometry parameter specified in the format
minx,miny,maxx,maxy
using decimal degrees. - NGDC file name: supported by a useNGDCId parameter whose value is either true or false
STP Ionospheric Data
- time: supported by parameters obsStartTime and obsEndTime to bound the observation time of a file in the results
- bounding box (spatial): supported by a geometry parameter specified in the format
minx,miny,maxx,maxy
using decimal degrees. - station: supported by specifying a stationName parameter, e.g. "BC840"
STP DMSP Data
- time: supported by parameters orbitStartTime and orbitEndTime to bound the observation time of a file in the results
- satellite: supported by specifying a satellite name, e.g. F10, F11, F18...
- coverage point (spatial): supported by geometry set to a
longitude,latitude
in decimal degrees
STP DSCOVR Data
- satellite: specify a satellite name from which data originated (e.g. DSCOVR)
- processing environment: select data from particular processing environments with the processEnvs parameter. Multiple values are comma-separated.
- data types: select particular types of data files with the dataTypes parameter. Multiple values are comma-separated.
- time data were collected: from dataStartTime to dataEndTime. Use ISO 8601 date/time format (e.g. yyyy-MM-dd T HH:mm Z).
- time data were processed: from processStartTime to processEndTime. Use ISO 8601 date/time format (e.g. yyyy-MM-dd T HH:mm Z).
Archived Data
- trackingIds: specify a comma-separated list of tracking Ids (each a sequence of hex digits of the form: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
3.2 Example Orders in JSON
More examples of JSON data to create orders:
In general the search criteria such asgeometry
and stationName
are optional,
but their careful use will prevent selecting too much data.Mixed data types in a single order
More than one dataset can be selected in a single order. The "items" array can contain an arbitrary number of datasets each with the appropriate selection criteria.Example POST: Ionospheric and Multibeam data in the same order
{ "email":"somebody@noaa.gov", "items":[ {"dataset":"Multibeam", "geometry": "geometry criteria" } {"dataset":"Ionosphere", "geometry": "geometry criteria" , "stationName": "BC840" } ] }
Example POST: Multibeam and Sounding (NOS) data in the same order
{ "email":"somebody@noaa.gov", "items":[ {"dataset":"Multibeam", "ship": "Robert Conrad" , "survey": "RC2605" }, {"dataset":"Sounding", "geometry": "-40,-40,10,10" , "startYear": "2010" , "endYear": "2011" } ] }
Example POST: Time Constrained Multibeam Request
{ "email":"somebody@noaa.gov", "items":[ {"dataset":"Multibeam", "geometry": "geometry criteria" , "startYear": "2010" , "endYear": "2010" } ] }
Example POST: Multibeam Request by ship and survey
{ "email":"somebody@noaa.gov", "items":[ {"dataset":"Multibeam", "ship": "Robert Conrad" , "survey": "RC2605" } ] }
Example POST: Time Constrained Ionospheric Request
{ "email":"somebody@noaa.gov", "items":[ {"dataset":"Ionosphere", "geometry": "geometry criteria" , "startTime": "02-DEC-10" , "endTime": "01-DEC-10" } ] }
Example POST: Time Constrained Trackline Request
{ "email":"somebody@noaa.gov", "items":[ {"dataset": "Trackline", "survey": "RC2014,BOMEXDI", "geometry": "-40,-40,10,10" , "startYear": "2010" , "endYear": "2011" , "format": "M77T" } ] }
Example POST: Time Constrained Dscovr Request
{ "email":"somebody@noaa.gov", "items":[ {"dataset": "Dscovr", "dataStartTime": "2015-12-29T00:00Z" ,"dataEndTime": "2015-12-31T00:00Z" } ] }
Example POST: processEnvs and dataTypes Constrained Dscovr Request
{ "email":"somebody@noaa.gov", "items":[ {"dataset": "Dscovr", "processEnvs": "oe" ,"dataTypes": "vc0" } ] }
Example POST: trackingIds Constrained Archive Request
{ "email":"somebody@noaa.gov", "items":[ {"dataset": "Archive", "trackingIds": "9753f7db-d162-4957-b180-1f812e82263a,a3a84536-9c07-4c58-91a8-d0325a8a33d3" } ] }