My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::Location Class Reference

#include <Location.h>

Public Types

enum  ReqParam { NONE = 0x0, SITE = 0x2, LOCATION = 0x4, ALL = SITE | LOCATION }
 

Public Member Functions

 Location ()
 
virtual ~Location ()
 
void setFiducialSite (Angle longitude, Angle latitude, double altitude)
 
void setOffset (double up, double east, double north)
 
bool canLocate ()
 
bool canBracket (double mjdUtc)
 
bool changed ()
 
Angle longitude (bool fiducial)
 
Angle latitude (bool fiducial)
 
double altitude (bool fiducial)
 
Vector< double > getXyz (bool geocentric=true)
 
double X (bool ec=true)
 
double Y (bool ec=true)
 
double Z (bool ec=true)
 
Vector< double > getUen ()
 
double up ()
 
double east ()
 
double north ()
 
Delay geometricDelay (HourAngle ha, DecAngle dec, Location &refLoc, bool doMotionCorrection)
 
Delay geometricDelay (Angle az, Angle el, Location &refLoc)
 
void registerLocationCallback (DelayLocation *delayLocation)
 
HourAngle getLst (double mjd)
 
HourAngle getHa (double mjdUtc, HourAngle ra)
 
HourAngle getHa (double mjdUtc, Source *src)
 
Astrometryephem ()
 

Friends

class DelayLocation
 

Detailed Description

A class for specifying a location

Member Enumeration Documentation

Parameters required to specify a location

Constructor & Destructor Documentation

Location::Location ( )

Constructor.

....................................................................... Constructor.

Location::~Location ( )
virtual

Destructor.

....................................................................... Destructor.

Member Function Documentation

bool gcp::util::Location::canBracket ( double  mjdUtc)

Return true if ephemeris parameters can be interpolated for this timestamp

bool Location::canLocate ( )

Return true if a site and offset have ben set for this location

....................................................................... Return true if a site and offset have ben set for this location

bool gcp::util::Location::changed ( )

Return true if parameters for this location have changed since the last time this function was called.

Astrometry& gcp::util::Location::ephem ( )
inline

Return a handle to the ephemeris handler

Delay Location::geometricDelay ( HourAngle  ha,
DecAngle  dec,
Location refLoc,
bool  doMotionCorrection 
)

Get geometric delay for an Ha Dec source position, in nanoseconds

....................................................................... Get geometric delay for an Ha Dec source position, in nanoseconds.

Delay Location::geometricDelay ( Angle  az,
Angle  el,
Location refLoc 
)

Get geometric delay for an Az El source position, in nanoseconds

....................................................................... Get geometric delay for an Az El source position, in nanoseconds

HourAngle Location::getHa ( double  mjdUtc,
HourAngle  ra 
)

Convert to Ha for the actual location of this antenna

....................................................................... Convert to Ha for the actual location of this antenna

HourAngle Location::getLst ( double  mjdUtc)

Convert mjd to lst for the location of this antenna

....................................................................... Convert mjd to lst for the actual location of this antenna

Vector<double> gcp::util::Location::getUen ( )
inline

Return the UEN coordinates (meters) of this object.

Vector<double> gcp::util::Location::getXyz ( bool  geocentric = true)
inline

Return the XYZ coordinates (meters) of this object.

Parameters
earthCenteredIf true, return positions relative to the center of the earth
Angle gcp::util::Location::longitude ( bool  fiducial)
inline

Return the LLA coordinates (long in rad, lat in rad, altitude in meters) of this object.

void Location::registerLocationCallback ( DelayLocation location)

Register to be called back when this object's location is updated

....................................................................... Register to be called back when this object's location is updated

void Location::setFiducialSite ( Angle  longitude,
Angle  latitude,
double  altitude 
)

A method to set a fiducial LLA point

....................................................................... A method to set a fiducial LLA point

void Location::setOffset ( double  up,
double  east,
double  north 
)

A method to set an UEN offset relative to the fiducial

....................................................................... A method to set an UEN offset relative to the fiducial


The documentation for this class was generated from the following files: