This is a time history weather data from a single site.
Definition at line 118 of file WxObsMap.hpp.
#include <WxObsMap.hpp>
Public Member Functions | |
void | flush (const CommonTime &t) noexcept |
WxObservation | getMostRecent (const CommonTime &t) const noexcept |
WxObservation | getWxObservation (const CommonTime &t, unsigned iv=3600, bool interpolate=true) const |
void | insertObservation (const WxObservation &obs) noexcept |
WxObsData () noexcept | |
Constructor. More... | |
Public Attributes | |
CommonTime | firstTime |
Time of the oldest data in this object. More... | |
CommonTime | lastTime |
Time of the youngest data in this object. More... | |
WxObsMap | obs |
The actual data. More... | |
unsigned | rxId |
This is the identifier of the site. More... | |
|
inlinenoexcept |
Constructor.
Definition at line 121 of file WxObsMap.hpp.
|
noexcept |
Removes all stored WxObservation objects older than time t.
t | remove WxObservation objects older than this |
Definition at line 83 of file WxObsMap.cpp.
|
noexcept |
Get the last WxObservation made before time t.
Definition at line 53 of file WxObsMap.cpp.
WxObservation gnsstk::WxObsData::getWxObservation | ( | const CommonTime & | t, |
unsigned | iv = 3600 , |
||
bool | interpolate = true |
||
) | const |
Find a WxObservation object for time t. A WxObservation object will be retured. If interpolation is used, the first object immediately before or at time t and the first object immediately after time t will be linearly interpolated between to return a data point at time t. If there is not enough data to interpolate, the nearest real observation will be returned. Any object returned or used in the interpolation scheme must fit within the specified time interval around t (if iv is one hour, a point must be within an hour before or after time t.)
t | the time of interest |
interpolate | true if interpolation between points is wanted |
iv | time interval (seconds, before and after) around t |
ObjectNotFound | a WxObservation object not available |
Definition at line 102 of file WxObsMap.cpp.
|
noexcept |
Insert a WxObservation.
obs | the WxObservation to insert. |
Definition at line 67 of file WxObsMap.cpp.
CommonTime gnsstk::WxObsData::firstTime |
Time of the oldest data in this object.
Definition at line 126 of file WxObsMap.hpp.
CommonTime gnsstk::WxObsData::lastTime |
Time of the youngest data in this object.
Definition at line 127 of file WxObsMap.hpp.
WxObsMap gnsstk::WxObsData::obs |
The actual data.
Definition at line 133 of file WxObsMap.hpp.
unsigned gnsstk::WxObsData::rxId |
This is the identifier of the site.
Definition at line 130 of file WxObsMap.hpp.