xarray.Dataset.regridder.grid#

Dataset.regridder.grid#

Extract the X, Y, and Z axes from the Dataset and return a new xr.Dataset.

Returns:

xr.Dataset – Containing grid axes.

Raises:
  • ValueError – If axis dimension coordinate variable is not correctly identified.

  • ValueError – If axis has multiple dimensions (only one is expected).

Examples

Import xCDAT:

>>> import xcdat

Open a dataset:

>>> ds = xcdat.open_dataset("...")

Extract grid from dataset:

>>> grid = ds.regridder.grid