Jpp 19.3.0
the software that should make you happy
Loading...
Searching...
No Matches
JAstronomy.hh File Reference

Interface methods for SLALIB and auxiliary classes and methods for astronomy. More...

#include <istream>
#include <ostream>
#include <limits>
#include <time.h>
#include "JLang/JException.hh"
#include "JLang/JManip.hh"
#include "JLang/JEquals.hh"
#include "JMath/JConstants.hh"
#include "JMath/JMatrix3D.hh"
#include "JMath/JSVD3D.hh"
#include "JUTM/JUTMGrid.hh"
#include "JGeometry3D/JAngle3D.hh"
#include "JGeometry3D/JDirection3D.hh"
#include "slalib/slalib.h"

Go to the source code of this file.

Classes

struct  JASTRONOMY::JEllipsoid
 Ellipsoid. More...
 
struct  JASTRONOMY::angle_type
 Auxiliary data structure for pair of angles. More...
 
struct  JASTRONOMY::angle_type_rad
 Auxiliary data structure for pair of angles. More...
 
struct  JASTRONOMY::angle_type_deg
 Auxiliary data structure for pair of angles. More...
 
struct  JASTRONOMY::J2000
 Conversion of source location. More...
 
struct  JASTRONOMY::JSourceLocation
 Location of astrophysical source. More...
 
struct  JASTRONOMY::JSourceLocationJ2000
 Location of astrophysical source. More...
 
struct  JASTRONOMY::JGalacticCoordinates
 Location of astrophysical source in Galactic coordinates. More...
 
struct  JASTRONOMY::JNeutrinoDirection
 Direction of incident neutrino. More...
 
struct  JASTRONOMY::JGeographicalLocation
 Location of detector. More...
 
class  JASTRONOMY::JAstronomy
 Auxiliary class to make coordinate transformations for a specific geographical location of the detector. More...
 

Namespaces

namespace  JASTRONOMY
 
namespace  JPP
 This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 

Functions

double JASTRONOMY::getTimeMJD (time_t t1_s)
 Get MJD time given UTC time.
 
double JASTRONOMY::getTimeUTC (time_t t1_s)
 Get UTC time given MJD time.
 
double JASTRONOMY::getRadians (const double angle)
 Convert angle to radians.
 
double JASTRONOMY::getDegrees (const double angle)
 Convert angle to degrees.
 
double JASTRONOMY::getRadians (const int angle, const int amin, const double asec)
 Convert angle to radians.
 
double JASTRONOMY::getHourAngle (const int hour, const int min, const double sec)
 Convert hour angle to radians.
 
double JASTRONOMY::getMeridianConvergenceAngle (const JGeographicalLocation &location)
 Get Meridian convergence angle.
 
double JASTRONOMY::getMeridianConvergenceAngle (const JGeographicalLocation &location, const JEllipsoid &ellipsoid)
 Get Meridian convergence angle.
 

Variables

static const double JASTRONOMY::NUMBER_OF_SECONDS_PER_HOUR = 60.0 * 60.0
 
static const double JASTRONOMY::NUMBER_OF_SECONDS_PER_DAY = NUMBER_OF_SECONDS_PER_HOUR * 24.0
 
static const double JASTRONOMY::NUMBER_OF_SECONDS_PER_YEAR = NUMBER_OF_SECONDS_PER_DAY * 365.0
 
static const double JASTRONOMY::NUMBER_OF_SECONDS_PER_SEDERIAL_DAY = NUMBER_OF_SECONDS_PER_HOUR * 23.9344696
 
static const double JASTRONOMY::LATITUDE_MIN_DEG = -80.0
 Minimal latitude angle [deg] of UTM for meridian convergence angle calculation.
 
static const double JASTRONOMY::LATITUDE_MAX_DEG = 84.0
 Maximal latitude angle [deg] of UTM for meridian convergence angle calculation.
 
static const double JASTRONOMY::MJD_EPOCH = 40587.0
 MJD of the Unix Epoch, i.e. 00:00 Jan 1 1970 (UTC) [d].
 
static const double JASTRONOMY::MJD_EPOCH_S = MJD_EPOCH * NUMBER_OF_SECONDS_PER_DAY
 MJD of the Unix Epoch, i.e. 00:00 Jan 1 1970 (UTC) [s].
 
static const JEllipsoid JASTRONOMY::EARTH_WGS84 = { 6378137.0, 0.00669438 }
 Earth ellipsoid according WGS84.
 
static const JGeographicalLocation JASTRONOMY::ANTARES (42, 48, 06, 10)
 
static const JGeographicalLocation JASTRONOMY::SICILY (36, 16, 16, 06)
 
static const JGeographicalLocation JASTRONOMY::PYLOS (36, 33, 16, 06)
 
static const JGeographicalLocation JASTRONOMY::ARCA (0.63342, 0.27883)
 
static const JGeographicalLocation JASTRONOMY::ORCA (0.74702, 0.10511)
 
static const JSourceLocation JASTRONOMY::GALACTIC_CENTER (-0.5062816, -1.633335)
 
static const JSourceLocation JASTRONOMY::RXJ1713 (getRadians(-39, -46, 0.0), getHourAngle(17, 13, 7))
 
static const JSourceLocation JASTRONOMY::VELAX (getRadians(-45, -10, -35.2), getHourAngle(8, 35, 20.66))
 

Detailed Description

Interface methods for SLALIB and auxiliary classes and methods for astronomy.

Author
mdejong, fhuang, azegarelli

Definition in file JAstronomy.hh.