Jpp  18.1.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions | Variables
JASTRONOMY Namespace Reference

Classes

class  JSourceLocation
 Location of astrophysical source. More...
 
class  JNeutrinoDirection
 Direction of incident neutrino. More...
 
class  JGeographicalLocation
 Location of detector. More...
 
class  JAstronomy
 Auxiliary class to make coordinate transformations for a specific geographical location of the detector. More...
 
struct  JStarTrek
 Auxiliary class for source tracking. More...
 

Functions

double sla_gmst_ (double &ut1)
 
double sla_gmsta_ (double &ut1, double &part_day)
 
double sla_eqeqx_ (double &ut1)
 
void sla_de2h_ (double &hourangle, double &declination, double &observer_latitude, double &azimuth, double &elevation)
 
void sla_dh2e_ (double &azimuth, double &elevation, double &observer_latitude, double &hourangle, double &declination)
 
void sla_eqecl_ (double &rightascension, double &declination, double &time, double &ecliptic_longitude, double &ecliptic_latitude)
 
void sla_ecleq_ (double &ecliptic_longitude, double &ecliptic_latitude, double &time, double &rightascension, double &declination)
 
void sla_eqgal_ (double &rightascension, double &declination, double &galactic_longitude, double &galactic_latitude)
 
void sla_galeq_ (double &galactic_longitude, double &galactic_latitude, double &rightascension, double &declination)
 
void sla_galsup_ (double &galactic_longitude, double &galactic_latitude, double &sgalactic_longitude, double &sgalactic_latitude)
 
void sla_supgal_ (double &sgalactic_longitude, double &sgalactic_latitude, double &galactic_longitude, double &galactic_latitude)
 
void sla_caldj_ (int &year, int &month, int &day, double &mjd, int &status)
 
void sla_clyd_ (int &year, int &month, int &day, int &nyears, int &ndays, int &status)
 
void sla_djcal_ (int &precision, double &mjd, int result[4], int &status)
 
void sla_dd2tf_ (int &ndec, double &day, char sign[1], int result[4])
 
double sla_dtt_ (double &ut1)
 
void sla_rdplan_ (double &dtt, int &object, const double &longitude, const double &latitude, double &rightascension, double &declination, double &diam)
 
void sla_preces_ (char *system, double &ep0, double &ep1, double &ra, double &dec, int length)
 
double getRadians (const double angle)
 Convert angle to radians. More...
 
double getRadians (const int angle, const int amin, const double asec)
 Convert angle to radians. More...
 
double getHourAngle (const int hour, const int min, const double sec)
 Convert hour angle to radians. More...
 
double getDot (const JNeutrinoDirection &first, const JNeutrinoDirection &second)
 Dot product. More...
 
double getDot (const JSourceLocation &first, const JSourceLocation &second)
 Dot product. More...
 

Variables

static const double MJD_EPOCH = 40587.0
 
static const double NUMBER_OF_SECONDS_PER_HOUR = 60.0 * 60.0
 
static const double NUMBER_OF_SECONDS_PER_DAY = NUMBER_OF_SECONDS_PER_HOUR * 24.0
 
static const double NUMBER_OF_SECONDS_PER_YEAR = NUMBER_OF_SECONDS_PER_DAY * 365.0
 
static const double NUMBER_OF_SECONDS_PER_SEDERIAL_DAY = NUMBER_OF_SECONDS_PER_HOUR * 23.9344696
 
static const JGeographicalLocation Antares (42, 48, 06, 10)
 
static const JGeographicalLocation Sicily (36, 16, 16, 06)
 
static const JGeographicalLocation Pylos (36, 33, 16, 06)
 
static const JSourceLocation galacticCenter (-0.5062816,-1.633335)
 
static const JSourceLocation RXJ1713 (getRadians(-39,-46, 0.0), getHourAngle(17, 13, 7))
 
static const JSourceLocation VELAX (getRadians(-45,-10,-35.2), getHourAngle(8, 35, 20.66))
 

Detailed Description

Author
mdejong

Function Documentation

double JASTRONOMY::sla_gmst_ ( double &  ut1)
double JASTRONOMY::sla_gmsta_ ( double &  ut1,
double &  part_day 
)
double JASTRONOMY::sla_eqeqx_ ( double &  ut1)
void JASTRONOMY::sla_de2h_ ( double &  hourangle,
double &  declination,
double &  observer_latitude,
double &  azimuth,
double &  elevation 
)
void JASTRONOMY::sla_dh2e_ ( double &  azimuth,
double &  elevation,
double &  observer_latitude,
double &  hourangle,
double &  declination 
)
void JASTRONOMY::sla_eqecl_ ( double &  rightascension,
double &  declination,
double &  time,
double &  ecliptic_longitude,
double &  ecliptic_latitude 
)
void JASTRONOMY::sla_ecleq_ ( double &  ecliptic_longitude,
double &  ecliptic_latitude,
double &  time,
double &  rightascension,
double &  declination 
)
void JASTRONOMY::sla_eqgal_ ( double &  rightascension,
double &  declination,
double &  galactic_longitude,
double &  galactic_latitude 
)
void JASTRONOMY::sla_galeq_ ( double &  galactic_longitude,
double &  galactic_latitude,
double &  rightascension,
double &  declination 
)
void JASTRONOMY::sla_galsup_ ( double &  galactic_longitude,
double &  galactic_latitude,
double &  sgalactic_longitude,
double &  sgalactic_latitude 
)
void JASTRONOMY::sla_supgal_ ( double &  sgalactic_longitude,
double &  sgalactic_latitude,
double &  galactic_longitude,
double &  galactic_latitude 
)
void JASTRONOMY::sla_caldj_ ( int &  year,
int &  month,
int &  day,
double &  mjd,
int &  status 
)
void JASTRONOMY::sla_clyd_ ( int &  year,
int &  month,
int &  day,
int &  nyears,
int &  ndays,
int &  status 
)
void JASTRONOMY::sla_djcal_ ( int &  precision,
double &  mjd,
int  result[4],
int &  status 
)
void JASTRONOMY::sla_dd2tf_ ( int &  ndec,
double &  day,
char  sign[1],
int  result[4] 
)
double JASTRONOMY::sla_dtt_ ( double &  ut1)
void JASTRONOMY::sla_rdplan_ ( double &  dtt,
int &  object,
const double &  longitude,
const double &  latitude,
double &  rightascension,
double &  declination,
double &  diam 
)
void JASTRONOMY::sla_preces_ ( char *  system,
double &  ep0,
double &  ep1,
double &  ra,
double &  dec,
int  length 
)
double JASTRONOMY::getRadians ( const double  angle)
inline

Convert angle to radians.

Parameters
angleangle [deg]
Returns
angle [rad]

Definition at line 95 of file JAstronomy.hh.

96  {
97  return JMATH::PI * angle / 180.0;
98  }
static const double PI
Mathematical constants.
double JASTRONOMY::getRadians ( const int  angle,
const int  amin,
const double  asec 
)
inline

Convert angle to radians.

Parameters
angleangle [deg]
aminarcminutes
asecarcseconds
Returns
angle [rad]

Definition at line 109 of file JAstronomy.hh.

112  {
113  return JMATH::PI * ((double) angle +
114  (double) amin / 60.0 +
115  (double) asec / 3600.0) / 180.0;
116  }
static const double PI
Mathematical constants.
double JASTRONOMY::getHourAngle ( const int  hour,
const int  min,
const double  sec 
)
inline

Convert hour angle to radians.

Parameters
hourhour
minminutes
secseconds
Returns
angle [rad]

Definition at line 127 of file JAstronomy.hh.

130  {
131  double ha = (JMATH::PI * (double) hour / 12.0 +
132  JMATH::PI * (double) min / 720.0 +
133  JMATH::PI * (double) sec / 43200.0);
134 
135  if (ha > JMATH::PI) {
136  ha -= 2*JMATH::PI;
137  }
138 
139  return ha;
140  }
static const double PI
Mathematical constants.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable TRIPOD $argv[2] set_variable TX $argv[3] set_variable TY $argv[4] if[[!-f $DETECTOR]]
Definition: JFootprint.sh:28
double JASTRONOMY::getDot ( const JNeutrinoDirection first,
const JNeutrinoDirection second 
)
inline

Dot product.

Parameters
firstneutrino direction
secondneutrino direction
Returns
dot product

Definition at line 409 of file JAstronomy.hh.

411  {
412  return
413  cos(first.getZenith()) * cos(second.getZenith()) +
414  sin(first.getZenith()) * sin(second.getZenith()) *
415  cos(first.getAzimuth() - second.getAzimuth());
416  }
then usage set_variable ACOUSTICS_WORKDIR $WORKDIR set_variable FORMULA sin([0]+2 *$PI *([1]+[2]*x)*x)" set_variable DY 1.0e-8 mkdir $WORKDIR for DETECTOR in $DETECTORS[*]
const double & getZenith() const
Definition: JAstronomy.hh:206
const double & getAzimuth() const
Definition: JAstronomy.hh:207
double JASTRONOMY::getDot ( const JSourceLocation first,
const JSourceLocation second 
)
inline

Dot product.

Parameters
firstsource location
secondsource location
Returns
dot product

Definition at line 426 of file JAstronomy.hh.

428  {
429  return
430  sin(first.getDeclination()) * sin(second.getDeclination()) +
431  cos(first.getDeclination()) * cos(second.getDeclination()) *
432  cos(first.getRightAscension() - second.getRightAscension());
433  }
then usage set_variable ACOUSTICS_WORKDIR $WORKDIR set_variable FORMULA sin([0]+2 *$PI *([1]+[2]*x)*x)" set_variable DY 1.0e-8 mkdir $WORKDIR for DETECTOR in $DETECTORS[*]
const double & getDeclination() const
Definition: JAstronomy.hh:170
const double & getRightAscension() const
Definition: JAstronomy.hh:171

Variable Documentation

const double JASTRONOMY::MJD_EPOCH = 40587.0
static

Definition at line 81 of file JAstronomy.hh.

const double JASTRONOMY::NUMBER_OF_SECONDS_PER_HOUR = 60.0 * 60.0
static

Definition at line 83 of file JAstronomy.hh.

const double JASTRONOMY::NUMBER_OF_SECONDS_PER_DAY = NUMBER_OF_SECONDS_PER_HOUR * 24.0
static

Definition at line 84 of file JAstronomy.hh.

const double JASTRONOMY::NUMBER_OF_SECONDS_PER_YEAR = NUMBER_OF_SECONDS_PER_DAY * 365.0
static

Definition at line 85 of file JAstronomy.hh.

const double JASTRONOMY::NUMBER_OF_SECONDS_PER_SEDERIAL_DAY = NUMBER_OF_SECONDS_PER_HOUR * 23.9344696
static

Definition at line 86 of file JAstronomy.hh.

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 JSourceLocation JASTRONOMY::galacticCenter(-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))
static