earthkit.transforms.spatial package

Module contents

Spatial transformations for earthkit data objects.

Typically this is done with an xarray representation of data and a geopandas representation of geometries.

mask(dataarray[, geodataframe, mask_dim, ...])

Apply multiple shape masks to some gridded data.

reduce(dataarray[, geodataframe, ...])

Apply a shape object to an xarray.DataArray object using the specified 'how' method.