Extract the values of all the state variables at the end of a model run and format for use as new initial conditions.
Useful links