classmethod foxes.core.FData.from_dataset(ds, *args, mdata=None, callback=None, **kwargs)[source]

Create Data object from a dataset

Parameters

ds: xarray.Dataset

The dataset

args: tuple, optional

Additional parameters for the constructor

mdata: MData, optional

The mdata object

callback: Function, optional

Function f(data, dims) that manipulates the data and dims dicts before construction

kwargs: dict, optional

Additional parameters for the constructor

Returns

data: Data

The data object