55 StationData(
const Coords& i_position,
const std::string& i_id=
"",
const std::string& i_name=
"");
82 void setStationData(
const Coords& i_position,
const std::string& i_id=
"",
const std::string& i_name=
"");
89 void setSlope(
const double& in_slope_angle,
const double& in_azimuth);
128 static bool unique(std::vector<StationData> &vecStation,
const bool& position_only=
false);
134 std::map<std::string, std::string>
extra;
A class to handle geographic coordinate systems. This class offers an easy way to transparently conve...
Definition: Coords.h:83
double getAltitude() const
Definition: Coords.h:123
A class to represent meteo stations with attributes like longitude, latitude, etc.
Definition: StationData.h:41
double getAzimuth() const
Get local slope azimuth.
Definition: StationData.h:74
std::string getHash() const
Definition: StationData.h:61
Coords position
Definition: StationData.h:131
static StationData merge(StationData sd1, const StationData &sd2)
Simple merge strategy. If some fields of the first argument are empty, they will be filled by the mat...
Definition: StationData.cc:71
bool operator!=(const StationData &) const
Operator that tests for inequality.
Definition: StationData.cc:67
bool operator==(const StationData &) const
Equality operator check all parameters but the station name.
Definition: StationData.cc:60
std::string stationID
ID of the Station, typically a short string.
Definition: StationData.h:132
static bool unique(std::vector< StationData > &vecStation, const bool &position_only=false)
Remove duplicate stations from a vector.
Definition: StationData.cc:86
double getSlopeAngle() const
Get local slope angle.
Definition: StationData.h:68
void setSlope(const double &in_slope_angle, const double &in_azimuth)
Slope information setter.
Definition: StationData.cc:42
std::string stationName
Name of the Station, detailed description.
Definition: StationData.h:133
StationData(void)
The default constructor initializing every double attribute to nodata and strings to "".
Definition: StationData.cc:29
const std::string toString() const
Definition: StationData.cc:121
std::string getStationID() const
Definition: StationData.h:58
friend std::istream & operator>>(std::istream &is, StationData &station)
Definition: StationData.cc:169
friend std::ostream & operator<<(std::ostream &os, const StationData &station)
Definition: StationData.cc:140
std::map< std::string, std::string > extra
Additional metadata, such as sensor types, etc. A better solution will be implemented at some point,...
Definition: StationData.h:134
double getAltitude() const
Definition: StationData.h:62
Coords getPosition() const
Definition: StationData.h:60
void setStationData(const Coords &i_position, const std::string &i_id="", const std::string &i_name="")
General setter function.
Definition: StationData.cc:35
std::string getStationName() const
Definition: StationData.h:59
std::vector< StationData > STATIONS_SET
Definition: StationData.h:141