- foxes.core.Engine.get_chunk_input_data(algo, model_data, farm_data, point_data, states_i0_i1, targets_i0_i1, out_vars, chunki_states, chunki_points, n_chunks_states, n_chunks_points)[source]
Extracts the data for a single chunk calculation
Parameters¶
- algo: foxes.core.Algorithm
The algorithm object
- model_data: xarray.Dataset
The initial model data
- farm_data: xarray.Dataset
The initial farm data
- point_data: xarray.Dataset
The initial point data
- states_i0_i1: tuple
The (start, end) values of the states
- targets_i0_i1: tuple
The (start, end) values of the targets
- out_vars: list of str
Names of the output variables
- chunki_states: int
The index of the states chunk
- chunki_points: int
The index of the points chunk
- n_chunks_states: int
The number of states chunks
- n_chunks_points: int
The number of points chunks
Returns¶
- data: tuple of foxes.core.Data
The input data for the chunk calculation, either (mdata, fdata) or (mdata, fdata, tdata)