GCBM
Namespaces | Functions
timeseriesutils.h File Reference
#include <moja/_core_exports.h>
#include <moja/dynamic.h>
#include <moja/exception.h>
#include "moja/modules/cbm/timeseries.h"
Include dependency graph for timeseriesutils.h:

Go to the source code of this file.

Namespaces

 moja
 
 moja::modules
 
 moja::modules::cbm
 

Functions

TimeSeries convertDynamicObjectToTimeSeries (const DynamicObject &s)
 Converts a DynamicObject containing TimeSeries configuration to an actual TimeSeries object. Configuration must be in the format: { "$time_series": { "year_0": <first timestep of data>, "data_per_year": <data points per year>, "n_years": <years of data>, "sub_same": <sub-timesteps use whole year value>, "values": <the raw timeseries data> } } More...
 
TimeSeries convertDynamicToTimeSeries (const DynamicVar &value)
 
DynamicVar convertTimeSeriesToDynamic (const TimeSeries &timeseries)