xesn.XData.setup#
- XData.setup(mode)#
Main data processing routine, consisting of the following steps:
Open a dataset with xarray.open_zarr, and select the field
Potentially transpose the data to the order of
dimensionsUse
subsample()to select the data, based on themodeargumentUse
normalize()to perform very simple normalization
- Parameters:
mode (str) – either “training”, “validation”, or “testing”
- Returns:
xda (xarray.Dataset) – containing the desired field with any preprocessing done