foxes.core.Model.get_data(variable, target, lookup='smfp', mdata=None, fdata=None, tdata=None, downwind_index=None, accept_none=False, accept_nan=True, algo=None, upcast=False, selection=None)[source]

Getter for a data entry in the model object or provided data sources

Parameters

variable: str

The variable, serves as data key

target: str, optional

The dimensions identifier for the output, FC.STATE_TURBINE, FC.STATE_TARGET or FC.STATE_TARGET_TPOINT

lookup: str

The order of data sources. Combination of: ‘s’ for self, ‘m’ for mdata, ‘f’ for fdata, ‘t’ for tdata, ‘w’ for wake modelling data

mdata: foxes.core.Data, optional

The model data

fdata: foxes.core.Data, optional

The farm data

tdata: foxes.core.Data, optional

The target point data

downwind_index: int, optional

The index in the downwind order

data_prio: bool

First search the data source, then the object

accept_none: bool

Do not throw an error if data entry is None

accept_nan: bool

Do not throw an error if data entry is np.nan

algo: foxes.core.Algorithm, optional

The algorithm, needed for data from previous iteration

upcast: bool

Flag for ensuring targets dimension, otherwise dimension 1 is entered

selection: numpy.ndarray, optional

Apply this selection to the result, state-turbine, state-target, or state-target-tpoint