casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Functions
pks_maths.h File Reference

Go to the source code of this file.

Functions

Int nint (Double v)
 AIPS++ includes.
Double anint (Double v)
Double round (Double v, Double p)
 Round value v to the nearest integral multiple of precision p.
Float median (const Vector< Float > &v, const Vector< Float > &wgt)
 Compute the weighted median value of an array.
Double angularDist (Double lng1, Double lat1, Double lng2, Double lat2)
 Angular distance between two directions (angles in radian).
void distPA (Double lng0, Double lat0, Double lng, Double lat, Double &dist, Double &pa)
 Generalized position angle of the field point (lng,lat) from reference point (lng0,lat0) and the angular distance between them (angles in radian).
void eulerx (Double lng0, Double lat0, Double phi0, Double theta, Double phi, Double &lng1, Double &lat1)
 Euler angle based transformation of spherical coordinates (radian).
void sol (Double mjd, Double &elng, Double &ra, Double &dec)
 Low precision coordinates of the sun.
void gst (Double ut1, Double &gmst, Double &gast)
 Low precision Greenwich mean and apparent sidereal time (radian); UT1 is given in MJD form.
void azel (const Vector< Double > position, Double ut1, Double ra, Double dec, Double &az, Double &el)
 Convert (ra,dec) to (az,el).
Double solel (const Vector< Double > position, Double ut1)
 Compute the Solar elevation (radian) using the above functions.

Function Documentation

Double angularDist ( Double  lng1,
Double  lat1,
Double  lng2,
Double  lat2 
)

Angular distance between two directions (angles in radian).

Double anint ( Double  v)
void azel ( const Vector< Double >  position,
Double  ut1,
Double  ra,
Double  dec,
Double &  az,
Double &  el 
)

Convert (ra,dec) to (az,el).

Position as a Cartesian triplet (m), UT1 in MJD form, and all angles in radian.

void distPA ( Double  lng0,
Double  lat0,
Double  lng,
Double  lat,
Double &  dist,
Double &  pa 
)

Generalized position angle of the field point (lng,lat) from reference point (lng0,lat0) and the angular distance between them (angles in radian).

void eulerx ( Double  lng0,
Double  lat0,
Double  phi0,
Double  theta,
Double  phi,
Double &  lng1,
Double &  lat1 
)

Euler angle based transformation of spherical coordinates (radian).

void gst ( Double  ut1,
Double &  gmst,
Double &  gast 
)

Low precision Greenwich mean and apparent sidereal time (radian); UT1 is given in MJD form.

Float median ( const Vector< Float > &  v,
const Vector< Float > &  wgt 
)

Compute the weighted median value of an array.

Int nint ( Double  v)

AIPS++ includes.

Global mathematical functions for single-dish data reduction.

Nearest integral value.

Double round ( Double  v,
Double  p 
)

Round value v to the nearest integral multiple of precision p.

void sol ( Double  mjd,
Double &  elng,
Double &  ra,
Double &  dec 
)

Low precision coordinates of the sun.

Double solel ( const Vector< Double >  position,
Double  ut1 
)

Compute the Solar elevation (radian) using the above functions.