-
foxes.input.states.DatasetStates.load_data(algo, cmap, variables, bounds_extra_space=
None, height_bounds=None, verbosity=0)[source] Load and/or create all model data that is subject to chunking.
Such data should not be stored under self, for memory reasons. The data returned here will automatically be chunked and then provided as part of the mdata object during calculations.
Parameters¶
- algo: foxes.core.Algorithm
The calculation algorithm
- cmap: dict
A mapping from foxes variable names to Dataset dimension names
- variables: list of str
The variables to extract from the Dataset
- bounds_extra_space: float, optional
The extra space in meters to add to the horizontal wind farm bounds
- height_bounds: tuple, optional
The (h_min, h_max) height bounds in m. Defaults to H +/- 0.5*D
- verbosity: int
The verbosity level, 0 = silent
Returns¶
- idata: dict
The dict has exactly two entries: data_vars, a dict with entries name_str -> (dim_tuple, data_ndarray); and coords, a dict with entries dim_name_str -> dim_array