State Observer¶
Header file: <libs/observers/state_observer.hpp>
[source]
-
template<typename Dataset>
inline Observer auto StateObserver(const unsigned int interval, const Dataset &dataset, const size_t maxchunk, const size_t ngbxs)¶ Constructs an observer which writes the state of a gridbox (thermodynamics and wind velocity components) in each gridbox at start of each observation timestep to an array with a constant observation timestep “interval”.
This function collects thermodynamic properties and wind velocities from the dataset and combines them into a single collection of state data.
- Template Parameters:
Dataset – Type of dataset
- Parameters:
interval – Observation timestep.
dataset – Dataset to write time data to.
maxchunk – Maximum number of elements in a chunk (1-D vector size).
ngbxs – The number of gridboxes.
- Returns:
Observer An observer instance for writing the state data.