🍾 Xarray is now 10 years old! 🎉

xarray.tutorial.load_dataset

Contents

xarray.tutorial.load_dataset#

xarray.tutorial.load_dataset(*args, **kwargs)[source]#

Open, load into memory, and close a dataset from the online repository (requires internet).

If a local copy is found then always use that to avoid network traffic.

Available datasets:

  • "air_temperature": NCEP reanalysis subset

  • "air_temperature_gradient": NCEP reanalysis subset with approximate x,y gradients

  • "basin_mask": Dataset with ocean basins marked using integers

  • "rasm": Output of the Regional Arctic System Model (RASM)

  • "ROMS_example": Regional Ocean Model System (ROMS) output

  • "tiny": small synthetic dataset with a 1D data variable

  • "era5-2mt-2019-03-uk.grib": ERA5 temperature data over the UK

  • "eraint_uvz": data from ERA-Interim reanalysis, monthly averages of upper level data

  • "ersstv5": NOAA’s Extended Reconstructed Sea Surface Temperature monthly averages

Parameters:
  • name (str) – Name of the file containing the dataset. e.g. ‘air_temperature’

  • cache_dir (path-like, optional) – The directory in which to search for and write cached data.

  • cache (bool, optional) – If True, then cache data locally for use on subsequent calls

  • **kws (dict, optional) – Passed to xarray.open_dataset

See also

tutorial.open_dataset, open_dataset, load_dataset