Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Querying Dataset Metadata with the GDEX API

Authors
Affiliations
NSF NCAR
NSF NCAR
NSF NCAR

Overview

GDEX exposes both file-level and dataset-level metadata for each dataset through dedicated endpoints. This notebook demonstrates how to retrieve and use these metadata fields.

  1. Retrieve the dataset abstract and acknowledgement

  2. Inspect spatial and temporal coverage

  3. List variables and data formats

  4. Check dataset volume and related datasets

Prerequisites

ConceptsImportanceNotes
api_introNecessaryGDEX API base URL and response envelope
requests libraryNecessary
pandasHelpfulTabular display of results
  • Time to learn: 20 minutes

Documentation

Full endpoint documentation can be found here


Imports

Dataset Abstract

GET /datasets/{dsid}/abstract/ returns cleaned text, extracted URLs, and any advisory notes.

The NCEP operational Global Forecast System analysis and forecast grids are on a 0.25 by 0.25 global latitude longitude grid. Grids include analysis and forecast time steps at a 3 hourly interval from 0 to 240, and a 12 hourly interval from 240 to 384. Model forecast runs occur at 00, 06, 12, and 18 UTC daily. For real-time data access please use the NCEP data server. s3.amazonaws.com/index.html">https://noaa-gfs-bdp-pds.s3.amazonaws.com/index.html). Therefore, the RDA will stop updating this da

Spatial and Temporal Coverage

GET /datasets/{dsid}/spatial_coverage/ returns bounding box, resolution, and grid dimensions. GET /datasets/{dsid}/temporal/ returns start/end dates and sub-group time ranges.

{'north': 90.0, 'south': -90.0, 'east': 180.0, 'west': -180.0, 'lat_units': 'degrees north', 'lon_units': 'degrees east'}
Start data: 2015-01-15 00:00 +0000
End data:   2026-12-14 12:00 +0000

Variables and detailed metadata

GET /paramsummary/{dsid} returns all variables. GET /metadata/{dsid}/ gives detailed inventory that you can filter.

https://gdex.ucar.edu/api/paramsummary/d084001/
https://gdex.ucar.edu/api/metadata/d084001/
Loading...

Now, you can filter to find more information about the contents of the dataset.

For example, let’s say I want to just get the parameters that are available at 500mb.

{'5-wave geopotential height', 'Absolute vorticity', 'Cloud water mixing ratio', 'Geopotential height', 'Graupel', 'Ice water mixing ratio', 'Icing severity', 'Ozone mixing ratio', 'Rain water mixing ratio', 'Relative humidity', 'Snow water mixing ratio', 'Specific humidity', 'Temperature', 'Total cloud cover', 'Vertical velocity (geometric)', 'Vertical velocity (pressure)', 'u-component of wind', 'v-component of wind'}

GET /datasets/{dsid}/volume/ reports total archive size. GET /datasets/{dsid}/related_datasets/ lists companion datasets.

Total volume: 675.73 TB

Summary

GDEX provides dedicated endpoints for every facet of dataset metadata — from abstract text and spatial bounds to variable lists and archive size — all following the same response envelope.