Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

NetCDF Subset Service for Point Data (version 0.2)


Please note that the interface described here is still a prototype, and subject to change.

Please send comments to the THREDDS email group (preferred) or to John CaronOverview

See NetCDF Subset Service for an overview.

Metar Subset Service

We have a prototype service for IDD METAR data at http://motherlode.ucar.edu:8080/thredds/ncss/metars/dataset.html. Sample URLS look like:

Other interesting URLs for the metar service:

Subsetting Parameters

A. Specify variables

The list of valid variables is available from the Dataset Description.

Examples:

Variable names with spaces or other illegal characters must be escaped.

B. Specify spatial extent

Latitude, longitude values are specified in decimal degrees north and east, respectively.

Use one of the following methods:

1. Specify lat/lon bounding box

Specify all of these parameters (order does not matter):

The bounding box has west as its west edge, includes all points going east until the east edge. Units must be degrees east, may be positive or negative, and will be taken modulo 360. Therefore, when crossing the dateline, the west edge may be greater than the east edge. Examples:

2. Specify lat/lon point

The requested point must lie within the dataset spatial range. The station closest to the requested point will be used.

Examples:

3. Specify station(s)

You may specify a list of stations instead of the lat/lon point or bounding box

The list of valid stations is available from the Dataset Description. Station names with spaces or other illegal characters must be escaped.

Examples:

C. Specify time

Use one of the following methods:

1. Time range

Specify 2 of these 3 parameters (order does not matter):

The intersection of the requested time range with the dataset time range will be returned.

Examples:

2. Time point

The requested time point must lie within the dataset time range. The time slice/point closest to the requested time will be returned.

Examples:

D. Specify the return format

Specify the return format(s) that you want by using the accept parameter:

accept=mime_type[,mime-type][,mime-type]

The list of possible return formats varies depending on the dataset, and can be found in the Dataset Description Document. Your request specifies the list of acceptable types, if none are valid a 400 "Bad Request" HTTP status is returned. If you specify multiple mime-types, the server will choose one of them.

The server returns the actual return format in the Content-Type header, examples:

Query examples:

The possible mime-types and aliases:

Mime Type Synonyms
text/plain raw, ascii
application/xml xml
text/csv csv
text/html html
application/x-netcdf netcdf

The list of actual return formats depends on the dataset, and can be found in the Dataset Description Document.

 

NetCDF File Writing Rules

Notes

 

Dataset Descriptions

Each dataset has an XML document called the Dataset Description Document. These are intended to perform the same function as OGC GetCapabilities or Atom Introspection, that is, provide clients with the necessary information to formulate a valid request and send it to the server. The content of these documents is still evolving.

Station Observation Dataset

A Station Observation Dataset is a collection of time series of observations at named locations called stations.

The dataset is described by a stationObsDataset document, which in turn points to the list of valid stations in a seperate stationCollection document. The stationCollection document can be quite large, and caching on the client (eg using the If-Modified-Since header) is an important optimization.

 


This document is maintained by John Caron and was last updated on June 18, 2007

 

 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690