foxes.algorithms.Downwind.select_population_member(pop_farm_results, pop_index)[source]

Select a specific population member from the population model results.

Parameters

pop_farm_results: xarray.Dataset

The farm results including population index dimension

pop_index: int or numpy.ndarray

The population index to select. Either a single index for all states, or an array of shape (n_states,)

Returns

farm_results: xarray.Dataset

The farm results for the selected population member.