Skip to content

Read dataset definition

GET /api/md/dataset/{datasetId}

  var dataset= _mdClient.Get(projectId, datasetId);

Returns the details about dataset definition.

  • For 2D gridded data returns also grid definition
  • For mesh based data, mesh definition is not included for size and performance reasons.

Example

{
  "id": "<id>",
  "name": "dataset name",
  "spatialDomain": {
    "type": "EquidistantGrid2DOutput",
    "x0": -179.99791666666667,
    "dx": 0.00416666666667,
    "nx": 28800,
    "y0": -89.997916666666669,
    "dy": 0.00416666666667,
    "ny": 21600,
    "gridType": "BottomLeftAligned",
    "spatialDomainType": "EquidistantGrid2D",
    "srid": 4326
  },
  "temporalDomain": {
    "type": "RegularTemporalDomainOutput",
    "step": "00:00:00",
    "start": "2020-01-01T00:00:00",
    "count": 1,
    "temporalDomainType": "Regular"
  },
  "items": [
    {
      "i": 0,
      "name": "elevation",
      "unit": "eumUmeter",
      "item": "eumIItemUndefined",
      "dataType": "Int16",
      "noDataValue": 0.0,
      "hasLayers": false
    }
  ]
}