8#ifndef SEIMS_CLIMATE_STATION_H
9#define SEIMS_CLIMATE_STATION_H
20using namespace db_mongoc;
65 void ReadSitesData(
const string& hydroDBName,
const string& sitesList,
const string& siteType,
66 time_t startDate, time_t endDate,
bool stormMode =
false);
77 void build_query_bson(
int nSites,
const vector<int>& siteIDList,
const string& siteType, bson_t* query);
86 void ReadSitesInfo(
const string& siteType,
const string& hydroDBName,
const string& sitesList);
96 map<string, Measurement *> m_measurement;
98 map<string, FLTPT*> m_elevation;
100 map<string, FLTPT*> m_latitude;
102 map<string, int> m_numSites;
Measurement class to store HydroClimate site data.
Base type of all interfaces.
Definition: basic.h:407
A simple wrapper of the class of MongoDB Client mongoc_client_t.
Definition: db_mongoc.h:46
Simple wrappers of the API of MongoDB C driver mongo-c-driver, see MongoDB C Driver for more informat...
bool GetLatitude(const char *site_type, FLTPT *&site_lats)
Get latitudes of given site type.
bool NumberOfSites(const char *site_type, int &site_count)
Get site number of given site type.
~InputStation()
Destructor.
void ReadSitesData(const string &hydroDBName, const string &sitesList, const string &siteType, time_t startDate, time_t endDate, bool stormMode=false)
Read data of each site type.
bool GetElevation(const char *site_type, FLTPT *&site_elevs)
Get elevations of given site type.
InputStation(MongoClient *conn, time_t dtHillslope, time_t dtChannel)
Constructor.
void GetTimeSeriesData(time_t time, const string &type, int *nRow, FLTPT **data)
Get time series data.
Common Cross-platform Geographic Library (CCGL)
The SEIMS related definitions and utilities header.