General Operations

pygeode.asdataset(vars, copy=False, print_warnings=True)[source]

Tries to convert a collection of objects into a single dataset.

Parameters
varscollection

The collection to convert. See Notes.

copyboolean
print_warningsboolean
Returns
datasetDataset

Notes

If vars is a single variable or list of variables, asdataset() returns a Dataset wrapping them. If there are datasets present in the list, it merges them into a single dataset.

pygeode.concatenate(*items, **kwargs)[source]

Concatenates multiple Var or Dataset objects together.

pygeode.ensemble(*varlists)[source]

Creates an ensemble out of a set of similar variables. The corresponding variable must have the same axes and the same name. If a bunch of vars are passed as inputs, then a single ensemble var is returned. If a bunch of datasets are passed as inputs, then a single dataset is returned, consisting of an ensemble of the internal vars. Each input dataset must have matching vars.

pygeode.vprod(*args)[source]

Multiplies an arbitrary number of variables together

pygeode.vsum(*args)[source]

Adds an arbitrary number of variables together