1 #ifndef MHO_StationModel_HH__
2 #define MHO_StationModel_HH__
107 template<
typename XCoeffVectorType >
108 void EvaluateSpline(
const XCoeffVectorType& coeff,
double delta_t,
double& results);
119 void CheckSplineInterval(
int n_intervals,
double tdiff,
int& int_no, std::string station_id);
128 template<
typename XTagType > XTagType RetrieveTag(
station_coord_type* data, std::string key);
131 std::string fEvalTimeString;
151 template<
typename XCoeffVectorType >
152 void MHO_StationModel::EvaluateSpline(
const XCoeffVectorType& coeff,
double delta_t,
double& result)
159 for(
int p = 0; p < n_coeff; p++)
162 tp = std::pow(delta_t, p);
174 template<
typename XTagType > XTagType MHO_StationModel::RetrieveTag(
station_coord_type* data, std::string key)
178 bool ok = data->Retrieve(key,
value);
181 msg_fatal(
"calibration",
"data tag with key: " << key <<
" is missing from station data." << eom);
#define msg_fatal(xKEY, xCONTENT)
Definition: MHO_Message.hh:234
std::size_t GetSize() const
get the total size of the array
Definition: MHO_NDArrayWrapper.hh:119
Class MHO_StationModel.
Definition: MHO_StationModel.hh:22
double GetUCoordinate()
Getter for u coordinate.
Definition: MHO_StationModel.hh:79
double GetWCoordinate()
Getter for w coordinate.
Definition: MHO_StationModel.hh:93
double GetParallacticAngle()
Getter for parallactic angle.
Definition: MHO_StationModel.hh:72
double GetVCoordinate()
Getter for v coordinate.
Definition: MHO_StationModel.hh:86
double GetDelay()
Getter for delay.
Definition: MHO_StationModel.hh:51
MHO_StationModel()
Definition: MHO_StationModel.cc:15
void ComputeModel()
Calculates station model parameters such as delay, azimuth, elevation, etc.
Definition: MHO_StationModel.cc:30
virtual ~MHO_StationModel()
Definition: MHO_StationModel.cc:28
double GetAzimuth()
Getter for azimuth.
Definition: MHO_StationModel.hh:58
double GetElevation()
Getter for elevation.
Definition: MHO_StationModel.hh:65
void SetStationData(station_coord_type *ref_data)
Setter for station data.
Definition: MHO_StationModel.hh:39
void SetEvaluationTimeVexString(std::string time_string)
Setter for (model) evaluation time vex string.
Definition: MHO_StationModel.hh:32
Class MHO_TableContainer.
Definition: MHO_TableContainer.hh:36
Definition: MHO_ChannelLabeler.hh:17
MHO_TableContainer< spline_coeff_type, station_coord_axis_pack > station_coord_type
Definition: MHO_StationContainers.hh:26