Go to the documentation of this file.
33 const double& latitude,
34 const double& elevation,
69 const double& latitude,
89 std::string
print(
void)
const;
261 double utc = date.
MJD();
262 utc -= std::floor(utc);
326 const double& latitude,
double Elevation_m() const
Return altitude in meters above sea level.
void SetTemperature_K(const double &temp_K=CppEphem::SeaLevelTemp_K())
Set the observer's temperature (Kelvin)
double cache_date_
Date used to copute pos/vel vectors.
void SetUTCOffset(const double &utc_offset)
Set the UTC offset for the observers time.
void SetLatitude(const double &latitude, const CEAngleType &angle_type=CEAngleType::RADIANS)
Set the observer's latitude.
std::vector< double > Time(const CEDate &date)
Get the current local time information (see CETime)
void free_members(void)
Initialize the data members.
virtual double GetTime_UTC() const
Method for getting the current UTC time.
double Temperature_C() const
Return temperature in degrees Celsius.
double Temp_C2F(const double &temp_C)
std::vector< double > pos_cirs_
XYZ position (AU) relative to Earth center.
void copy_members(const CEObserver &other)
Copy data members from another CEObserver object.
static std::vector< double > TimeDbl2Vect(const double &time)
Convert a time formatted as HHMMSS.SS into a vector.
double relative_humidity_
Relative humidity (in range 0-1)
double RelativeHumidity() const
Return relative humidity.
std::vector< double > PositionGeo(void) const
Returns the observers geocentric position in meters.
double Temperature_F() const
Return temperature in degrees Fahrenheit.
double sec_per_day()
Seconds per day.
std::vector< double > Time_UTC(const CEDate &date)
Get the current local time information (see CETime)
double Longitude_Rad() const
Return observer geographic longitude in radians.
double Temperature_K() const
Return temperature in Kelvin.
void SetRelativeHumidity(const double &humidity=0.0)
Set the observer's relative humidity.
void SetElevation(const double &elevation=0.0)
Set elevation in meters above sea level.
void UpdatePosVel(const CEDate &date) const
Update cached position/velocity vectors.
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.
std::vector< double > VelocityICRS(const CEDate &date) const
Get the velocity vector for this observer relative to ICRS (solar system barycenter)
double latitude_
Geographic latitude (radians)
std::vector< double > VelocityCIRS(const CEDate &date) const
Get the velocity vector for this observer relative to CIRS (solar system barycenter)
CEObserver & operator=(const CEObserver &other)
Copy assignment operator.
std::vector< double > PositionICRS(const CEDate &date) const
Get the position vector for this observer relative to ICRS (solar system barycenter)
double Pressure_hPa() const
Return atmospheric pressure in units of hPa.
void SetGeoCoordinates(const double &longitude, const double &latitude, const CEAngleType &angle_type=CEAngleType::RADIANS)
Set the observer's longitude and latitude.
double longitude_
Geographic longitude (radians)
double Wavelength_um() const
Return the wavelength in units of micrometers.
void SetTemperature_C(const double &temp_C=CppEphem::SeaLevelTemp_C())
Set the observer's temperature (Celsius)
std::string print(void) const
Returns a string containing information about this object.
std::vector< double > PositionCIRS(const CEDate &date) const
Get the position vector for this observer relative to CIRS (Earth center)
double Temp_F2C(const double &temp_F)
double elevation_m_
Elevation (in meters) above sea-level.
void SetLongitude(const double &longitude, const CEAngleType &angle_type=CEAngleType::RADIANS)
Set the observer's longitude.
static double TimeSec2Time(const double &seconds)
Convert number of seconds since midnight to HHMMSS.S formatted double.
double wavelength_um_
Observing wavelength (micrometers)
double Temp_K2C(const double &temp_K)
std::vector< double > vel_cirs_
XYZ velocity (AU) relative to Earth center.
void SetTemperature_F(const double &temp_F=CppEphem::SeaLevelTemp_F())
Set the observer's temperature (Fahrenheit)
double Latitude_Deg() const
Return geographic latitude in degrees.
double EstimatePressure_hPa(double elevation_m)
Method for estimating atmospheric pressure (in hPa) from altitude (in meters)
double temperature_celsius_
Temperature in degrees celsius.
CEObserver(void)
Default constructor.
double pressure_hPa_
Atmospheric pressure (in units of hPa)
std::vector< double > vel_icrs_
XYZ veloicty (AU) relative to solar system barycenter.
std::vector< double > pos_icrs_
XYZ position (AU) relative to solar system barycenter.
double utc_offset_
UTC offset in hours (set by default to system offset)
virtual double MJD() const
Get the Modified Julian date represented by this object.
double Longitude_Deg() const
Return observer geographic longitude in degrees.
double Temp_C2K(const double &temp_C)
double Latitude_Rad() const
Return geographic latitude in radians.
void init_members(void)
Initialize the data members.
virtual ~CEObserver(void)
Destructor.