Sky Class Reference

#include <orsa_orbit.h>

Collaboration diagram for Sky:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void Set (Angle &ra, Angle &dec)
Angle ra () const
Angle dec () const
void Compute_J2000 (const Vector &relative_position)
double delta_arcsec (const Observation &obs) const

Member Function Documentation

void Compute_J2000 const Vector relative_position  ) 
 

Definition at line 1313 of file orsa_orbit.cc.

References orsa::ECLIPTIC, orsa::EclipticToEquatorial_J2000(), orsa::EQUATORIAL, Universe::GetReferenceSystem(), Vector::Length(), orsa::pi, orsa::secure_acos(), orsa::secure_atan2(), Angle::SetRad(), orsa::twopi, orsa::universe, Vector::x, Vector::y, and Vector::z.

Referenced by orsa::Compute_Gauss(), OptimizedOrbitPositions::PropagatedSky_J2000(), and orsa::PropagatedSky_J2000().

01313                                                          {
01314     // NOTE: relative_position = object - observer
01315     switch (universe->GetReferenceSystem()) {
01316     case ECLIPTIC: {
01317       Vector r = relative_position;
01318       // Angle obl = obleq_J2000();
01319       // r.rotate(0,obl.GetRad(),0);
01320       EclipticToEquatorial_J2000(r);
01321       _ra.SetRad(fmod(secure_atan2(r.y,r.x)+twopi,twopi));
01322       _dec.SetRad(pi/2 - secure_acos(r.z/r.Length()));
01323       break;
01324     }
01325     case EQUATORIAL: {
01326       _ra.SetRad(fmod(secure_atan2(relative_position.y,relative_position.x)+twopi,twopi));
01327       _dec.SetRad(pi/2 - secure_acos(relative_position.z/relative_position.Length()));
01328       break;
01329     }
01330     }
01331   }

Here is the call graph for this function:

Angle dec  )  const [inline]
 

Definition at line 67 of file orsa_orbit.h.

Referenced by orsa::Compute_Gauss(), orsa::OrbitDifferentialCorrectionsLeastSquares(), and Sky::Set().

00067 { return _dec; }

double delta_arcsec const Observation obs  )  const
 

Definition at line 1345 of file orsa_orbit.cc.

References orsa::pi, and orsa::unit_vector().

Referenced by orsa::Compute(), orsa::gauss_v_diff_f(), orsa::gauss_v_f(), orsa::least_sq_diff_f(), orsa::least_sq_f(), orsa::OrbitDifferentialCorrectionsLeastSquares(), orsa::residual(), and orsa::RMS_residuals().

01345                                                         {
01346     return ((180/pi)*3600.0*acos(unit_vector(obs.ra,obs.dec)*unit_vector(_ra,_dec)));
01347   }

Here is the call graph for this function:

Angle ra  )  const [inline]
 

Definition at line 66 of file orsa_orbit.h.

Referenced by orsa::Compute_Gauss(), orsa::OrbitDifferentialCorrectionsLeastSquares(), and Sky::Set().

00066 { return _ra; }

void Set Angle ra,
Angle dec
[inline]
 

Definition at line 60 of file orsa_orbit.h.

References Sky::dec(), and Sky::ra().

00060                                       {
00061       _ra    = ra;
00062       _dec   = dec;
00063     }

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Tue Jan 11 15:29:26 2005 for liborsa by  doxygen 1.4.0