Go to the documentation of this file.
72 std::cout <<
"\nTesting CEObservation:\n";
91 test(test1.
Body() ==
nullptr, __func__, __LINE__);
92 test(test1.
Date() ==
nullptr, __func__, __LINE__);
93 test(test1.
Observer() ==
nullptr, __func__, __LINE__);
103 test(test3.Body() == &
base_body_, __func__, __LINE__);
104 test(test3.Date() == &
base_date_, __func__, __LINE__);
109 test(test4.Body() == &
base_body_, __func__, __LINE__);
110 test(test4.Date() == &
base_date_, __func__, __LINE__);
125 test(test1.
Body() !=
nullptr, __func__, __LINE__);
127 test(test1.
Date() !=
nullptr, __func__, __LINE__);
129 test(test1.
Observer() !=
nullptr, __func__, __LINE__);
143 test(test1.
Body() !=
nullptr, __func__, __LINE__);
144 test(test1.
Date() !=
nullptr, __func__, __LINE__);
145 test(test1.
Observer() !=
nullptr, __func__, __LINE__);
176 test(obs_coords == test2, __func__, __LINE__);
182 double test_x(0), test_y(0);
186 test_double(test_x, test2.XCoord().Deg(), __func__, __LINE__);
187 test_double(test_y, test2.YCoord().Deg(), __func__, __LINE__);
191 test_double(test_x, 0.0, __func__, __LINE__);
192 test_double(test_y, 0.0, __func__, __LINE__);
201 int main(
int argc,
char** argv)
test_CEObservation()
Default constructor.
RA, Dec (referenced at the barycenter of the solarsystem)
virtual double GetZenith_Deg()
virtual void SetObserver(CEObserver *new_observer)
Set underlying CEObserver object.
virtual void GetAzimuthZenith_Deg(double *azimuth, double *zenith)
Returns both the azimuth and zenith angle of a given 'body_' as observed by 'observer_' on the date g...
virtual double GetApparentYCoordinate_Deg()
CEObserver * Observer()
Access the underlying objects.
virtual bool runtests(void)
Run tests.
virtual void GetApparentXYCoordinate_Deg(double *apparent_X, double *apparent_Y)
Returns both the observed x,y coordinates of a given 'body_' as observed by 'observer_' on the date g...
void SetRelativeHumidity(const double &humidity=0.0)
Set the observer's relative humidity.
virtual double GetHourAngle_Deg()
void SetWavelength_um(const double &new_wavelength_um)
Set the observer's observing wavelength (micrometers)
void SetPressure_hPa(const double &pressure=CppEphem::EstimatePressure_hPa(CppEphem::SeaLevelTemp_C()))
Set the observer's pressure.
virtual double GetApparentXCoordinate_Deg()
int main(int argc, char **argv)
Main method that actually runs the tests.
void SetTemperature_C(const double &temp_C=CppEphem::SeaLevelTemp_C())
Set the observer's temperature (Celsius)
double julian_date_J2000()
Julian Date corresponding to J2000.
virtual ~test_CEObservation()
Destructor.
CEBody * Body()
Access underlying CEBody object.
bool test_cache(void)
Tests accessing and updating of cached parameters.
bool test_obj_return(void)
Tests accessing underlying observer, date, and object classes.
virtual double GetAzimuth_Rad()
double Deg(void) const
Return angle in degrees as a double.
virtual double GetAzimuth_Deg()
virtual void SetBody(CEBody *new_body)
Set underlying CEBody object.
bool test_constructor(void)
Tests constructing a CEObservation object.
virtual double GetZenith_Rad()
void SetReturnType(CEDateType return_type)
Set the return type from the overloaded 'operator double'.
CEDate * Date()
Access underlying CEDate object.
virtual double GetAltitude_Deg()
CEObserver base_observer_
virtual void SetDate(CEDate *new_date)
Set underlying CEDate object.
Azimuth, Zenith (requires additional observer information)