emsarray
emsarray#
A number of useful functions and classes are imported in to the emsarray module for your convenience:
- emsarray.open_dataset(path, **kwargs)#
Determine the format of a dataset and then open it, setting any flags required by the format.
Some dataset formats require certain flags to be set when opening a dataset. For example,
UGriddatasets must be opened withscale_and_mask=False.emsarray.open_dataset()delegates to the correctFormatimpelementation.- Parameters
path – The path to the dataset to open
kwargs – These are passed straight through to
xarray.open_dataset().
- Returns
xarray.Dataset– The opened dataset
Example
import emsarray dataset = emsarray.open_dataset("./tests/datasets/ugrid_mesh2d.nc")