|
|
#define | hz2rad(hz) (2.0*PI*hz) |
| | Get the frequency in radians/s.
|
| |
|
#define | sinpsin(s1, s2) (2.0*sin((asin(s1)+asin(s2))/2.0)*cos((asin(s1)-asin(s2))/2.0)) |
| | Sum two sine.
|
| |
|
#define | sinmsin(s1, s2) (2.0*cos((asin(s1)+asin(s2))/2.0)*sin((asin(s1)-asin(s2))/2.0)) |
| | Subtract a sine from a sine.
|
| |
|
#define | cospcos(c1, c2) (2.0*cos((acos(s1)+acos(s2))/2.0)*cos((acos(s1)-acos(s2))/2.0)) |
| | Sum two cosine.
|
| |
|
#define | cosmcos(c1, c2) (2.0*sin((acos(s1)+acos(s2))/2.0)*sin((acos(s1)-acos(s2))/2.0)) |
| | Subtract a cosine from a cosine.
|
| |
|
#define | sinxsin(s1, s2) ((cos(asin(s1)-asin(s2))-cos(asin(s1)+asin(s2)))/2.0) |
| | Multiply a sine to a sine.
|
| |
|
#define | cosxcos(c1, c2) ((cos(acos(s1)+acos(s2))+cos(acos(s1)-acos(s2)))/2.0) |
| | Multiply a cosine to a cosine.
|
| |
|
#define | sinxcos(s, c) ((sin(asin(s)+acos(c))+sin(asin(s)-acos(c)))/2.0) |
| | Multiply a sine to a cosine.
|
| |
|
#define | sin2cos(s) cos(asin(s)) |
| | Get the cosine of a sine value.
|
| |
|
#define | cos2sin(c) sin(acos(c)) |
| | Get the sine from a cosine value.
|
| |
|
#define | VLBI_VERSION_STRING "3.0.0" |
| | The current OpenVLBI version.
|
| |
|
#define | VLBI_CATALOG_PATH "/usr/share/OpenVLBI/cat/index.txt" |
| | The path where the catalogs are stored.
|
| |
|
#define | CIRCLE_DEG 360.0 |
| | degrees in a circle
|
| |
|
#define | CIRCLE_AM (CIRCLE_DEG * 60.0) |
| | arcminutes in a circle
|
| |
|
#define | CIRCLE_AS (CIRCLE_AM * 60.0) |
| | arcseconds in a circle
|
| |
|
#define | RAD_AS (CIRCLE_AS/(PI*2.0)) |
| | arcseconds per radian
|
| |
|
#define | ONE_SECOND_TICKS 100000000 |
| | Many architectures reach 100 ns clock resolutions.
|
| |
|
#define | ONE_MILLISECOND_TICKS 100000 |
| | Our millisecond tick value.
|
| |
|
#define | ONE_MICROSECOND_TICKS 100 |
| | Our microsecond tick value.
|
| |
|
#define | SOLAR_DAY 86400 |
| | Solar day duration in seconds.
|
| |
|
#define | SIDEREAL_DAY 86164.0905 |
| | Sidereal day aproximated duration in seconds.
|
| |
|
#define | TRACKRATE_SIDEREAL (CIRCLE_AS / SIDEREAL_DAY) |
| | Sidereal track rate in arcseconds/second.
|
| |
|
#define | TRACKRATE_SOLAR (CIRCLE_AS / SOLAR_DAY) |
| | Solar track rate in arcseconds/second.
|
| |
|
#define | TRACKRATE_LUNAR 14.511415 |
| | Lunar track rate in arcseconds/second.
|
| |
|
#define | EARTHRADIUSEQUATORIAL 6378137.0 |
| | Earth equatorial radius aproximation in meters.
|
| |
|
#define | EARTHRADIUSPOLAR 6356752.0 |
| | Earth polar radius aproximation in meters.
|
| |
|
#define | EARTHRADIUSMEAN 6372797.0 |
| | Earth mean radius aproximation in meters.
|
| |
|
#define | AVOGADRO 6.02214076E+23 |
| | Our Avogadro constant.
|
| |
|
#define | EULER 2.71828182845904523536028747135266249775724709369995 |
| | Our Euler constant.
|
| |
|
#define | PLANK 6.62607015E-34 |
| | Our Plank constant.
|
| |
|
#define | BOLTSMANN 1.380649E-23 |
| | Our Boltsmann constant.
|
| |
|
#define | STEPHAN_BOLTSMANN (2.0*pow(PI, 5)*pow(BOLTSMANN, 2)/(pow(LIGHTSPEED, 2)*15*pow(PLANK, 3))) |
| | Our Stephan-Boltsmann constant.
|
| |
|
#define | GAS_R (BOLTSMANN * AVOGADRO) |
| | Our Gas universal constant.
|
| |
|
#define | ROOT2 1.41421356237309504880168872420969807856967187537694 |
| | Our square root of 2 constant.
|
| |
|
#define | PI 3.14159265358979323846 |
| | Our PI constant.
|
| |
|
#define | AIRY 1.21966 |
| | Our airy constant.
|
| |
|
#define | LIGHTSPEED 299792458.0 |
| | Our c constant.
|
| |
|
#define | J2000 2451545.0 |
| | J2000 epoch in seconds.
|
| |
|
#define | GAMMAJ2000 18.6971378528 |
| | Right ascension of the meridian at J2000 zero at Greenwich.
|
| |
|
#define | ELECTRON 1.602176634E-19 |
| | Electron charge.
|
| |
|
#define | CANDLE 0.683 |
| | Standard candle (W)
|
| |
|
#define | ASTRONOMICALUNIT 1.495978707E+11 |
| | Aproximation of an astronomical unit in meters.
|
| |
|
#define | PARSEC (ASTRONOMICALUNIT/sin(PI*2.0/CIRCLE_AS)) |
| | Aproximation of a parsec in meters.
|
| |
|
#define | LY (LIGHTSPEED * SIDEREAL_DAY * 365.0) |
| | Aproximation of a light year in meters.
|
| |
| #define | AU2M(au) (au * ASTRONOMICALUNIT) |
| | Convert astronomical units to meters. More...
|
| |
| #define | PARSEC2M(parsec) (parsec * PARSEC) |
| | Convert parsecs to meters. More...
|
| |
| #define | LY2M(ly) (ly * LY) |
| | Convert light years to meters. More...
|
| |
| #define | M2AU(m) (m / ASTRONOMICALUNIT) |
| | Convert meters to astronomical units. More...
|
| |
| #define | M2PARSEC(m) (m / PARSEC) |
| | Convert meters to parsecs. More...
|
| |
| #define | M2LY(m) (m / LY) |
| | Convert meters to light years. More...
|
| |
| #define | RAD2AS(rad) (rad * RAD_AS) |
| | Convert radians into arcseconds. More...
|
| |
| #define | AS2RAD(as) (as / RAD_AS); |
| | Convert arcseconds into radians. More...
|
| |