environmentaltools.spatiotemporal.raster.preprocess

environmentaltools.spatiotemporal.raster.preprocess(ds)[source]

Expand the dataset by adding a ‘simulation’ dimension using the ‘simulation’ attribute.

Parameters:

ds (xarray.Dataset) – Input dataset, expected to have a ‘simulation’ attribute.

Returns:

Dataset with an added ‘simulation’ dimension labeled by the simulation ID.

Return type:

xarray.Dataset