reV.bespoke.bespoke.BespokeSinglePlantData

class BespokeSinglePlantData(data_inds, wind_dirs, wind_speeds, temps, pressures, time_index, relative_humidities=None)[source]

Bases: object

Single-plant preloaded data.

This object is intended to facilitate the use of pre-loaded data for running BespokeSinglePlant on systems with slow parallel reads to a single HDF5 file.

Initialize BespokeSinglePlantData

Parameters:
  • data_inds (1D np.array) – Array of res GIDs. This array should be the same length as the second dimension of wind_dirs, wind_speeds, temps, and pressures. The GID value of data_inds[0] should correspond to the wind_dirs[:, 0] data, etc.

  • wind_dirs (2D np.array) – Array of wind directions. Dimensions should be correspond to [time, location]. See documentation for data_inds for required spatial mapping of GID values.

  • wind_speeds (2D np.array) – Array of wind speeds. Dimensions should be correspond to [time, location]. See documentation for data_inds for required spatial mapping of GID values.

  • temps (2D np.array) – Array oftemperatures. Dimensions should be correspond to [time, location]. See documentation for data_inds for required spatial mapping of GID values.

  • pressures (2D np.array) – Array of pressures. Dimensions should be correspond to pressures, respectively. Dimensions should be correspond to [time, location]. See documentation for data_inds for required spatial mapping of GID values.

  • time_index (1D np.array) – Time index array corresponding to the temporal dimension of the 2D data. Will be exposed directly to user.

  • relative_humidities (2D np.array, optional) – Array of relative humidities. Dimensions should be correspond to [time, location]. See documentation for data_inds for required spatial mapping of GID values. If None, relative_humidities cannot be queried.

Methods