External Interfaces

Methods for converting from PyGeode to other structures, and vice-versa.

Converting to/from xarray

to_xarray(dataset)

Converts a PyGeode Dataset into an xarray Dataset.

from_xarray(dataset)

Converts an xarray Dataset into a PyGeode Dataset.

pygeode.ext_xarray.to_xarray(dataset)[source]

Converts a PyGeode Dataset into an xarray Dataset.

Parameters
datasetpygeode.Dataset

The dataset to be converted.

Returns
outxarray.Dataset

An object which can be used with the xarray package.

pygeode.ext_xarray.from_xarray(dataset)[source]

Converts an xarray Dataset into a PyGeode Dataset.

Parameters
datasetxarray.Dataset

The dataset to be converted.

Returns
outpygeode.Dataset

An object which can be used with the pygeode package.