Slice a single year from model state

get_time_slice(state, index)

Arguments

state

The model state with time dimension

index

The index of the time step you want to extract

Value

List of model outputs for the specified time step. Can be used as input state for run_model_from_state() and run_model_single_year(). All outputs will have 1 fewer dimension than input state.