xesn.XData.setup

Contents

xesn.XData.setup#

XData.setup(mode)#

Main data processing routine, consisting of the following steps:

  1. Open a dataset with xarray.open_zarr, and select the field

  2. Potentially transpose the data to the order of dimensions

  3. Use subsample() to select the data, based on the mode argument

  4. Use 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