reV.bespoke.bespoke.BespokeMultiPlantData
- class BespokeMultiPlantData(res_fpath, sc_gid_to_hh, sc_gid_to_res_gid, pre_load_humidity=False)[source]
Bases:
object
Multi-plant preloaded data.
This object is intended to facilitate the use of pre-loaded data for running
BespokeWindPlants
on systems with slow parallel reads to a single HDF5 file.Initialize BespokeMultiPlantData
- Parameters:
res_fpath (str | list) – Unix shell style path (potentially containing wildcard (*) patterns) to a single or multi-file resource file set(s). Can also be an explicit list of resource file paths, which themselves can contain wildcards. This input must be readable by
rex.multi_year_resource.MultiYearWindResource
.sc_gid_to_hh (dict) – Dictionary mapping SC GID values to hub-heights. Data for each SC GID will be pulled for the corresponding hub-height given in this dictionary.
sc_gid_to_res_gid (dict) – Dictionary mapping SC GID values to an iterable oif resource GID values. Resource GID values should correspond to GID values in the HDF5 file, so any GID map must be applied before initializing :class`BespokeMultiPlantData`.
pre_load_humidity (optional, default=False) – Option to pre-load relative humidity data (useful for icing runs). If
False
, relative humidities are not loaded.
Methods
get_preloaded_data_for_gid
(sc_gid)Get the pre-loaded data for a single SC GID.