An action and response that will get the grid (and the individual axes contained in the grid) for a particular variable.
The URL forthis action is:
http://server.gov:8080/las/getGrid.do?dsid=datasetID&varid=variableID
This is a UML of the JSON which is returned.
Please note: this information is intended to describe elements that are needed in a user interface for this variable. These values do not necessarily represent the exact grid upon which the underlying data are defined. For example, a collection of in-situ observations might have a grid which is defined as a rectangular region in space when in reality the data are defined at only a few descrete locations in that range.
The response is a a JSON Object containing JSON Objects each of which representsan axis for this grid. These axis objects are keyed by either type (x, y, z, or t). Each axis object will contain a collection of name value pairs representing the units, the name, the type. These member objects are all String name/value pairs. The actual description of the axis range will be contained in either an arange object or a v object. An arange object is a collection of name value pairs that defines the starting point of the axis, the sized of the delta between steps and the number of steps. As such it can only be used to describe a regular axis. A v object is a list of name value pairs (the verticies of an axis) and can be thought of as the definition of a pull down menu. The name is to be displayed and the value is to be sent to the Product Server in a request.
For example, the response for an LAS that contains the coads_climatology_cdf data set and the SST variable looks like this:
{ "t": { "t": "t", "units": "month", "name": "t", "ID": "coads_climatology_cdf_TIME", "v": [ {"Jan": "15-Jan"}, {"Feb": "15-Feb"}, {"Mar": "15-Mar"}, {"Apr": "15-Apr"}, {"May": "15-May"}, {"Jun": "15-Jun"}, {"Jul": "15-Jul"}, {"Aug": "15-Aug"}, {"Sep": "15-Sep"}, {"Oct": "15-Oct"}, {"Nov": "15-Nov"}, {"Dec": "15-Dec"} ], "display_type": "menu" }, "y": { "units": "degrees_north", "arange": { "start": "-89", "size": "90", "step": "2", "name": "y_arange", "ID": "coads_climatology_cdf_COADSY_y" }, "ID": "coads_climatology_cdf_COADSY" }, "x": { "units": "degrees_east", "arange": { "start": "21", "size": "180", "step": "2", "name": "x_arange", "ID": "coads_climatology_cdf_COADSX_x" }, "ID": "coads_climatology_cdf_COADSX" } }