Description:
This routine takes the input coordinates and
coordinate system of the map centre and converts them to the apparent coords at the time of the
observation. In addition, the angle between the north direction in the input coordinate frame and that
in the apparent frame is calculated (measured anti-clockwise from input north, in radians). See
SCU/3.0/JFL/ 0393.
-
[AZ] coords: Calculate the apparent RA and DEC at the LST when the routine is called
by:-
| (4) |
| (5) |
| (6) |
is present in the
denominator of both the
and
terms and it could cause both to blow up – so it’s left out as only the ratio is important
| (8) |
| (9) |
Again, appears in the
denominator of both
and
expressions and is left out of the calculation because on ly the ratio is important.
-
[RB] coords: Use SLA_FK54Z to convert to RJ. Use SLA_MAP to convert to apparent, giving ra_app,
dec_app. Use same method to calculate apparent position of RB N pole, giving ra_N_app, dec_N_app.
Then calculate rotation from:-
| (10) |
| (11) |
| (12) |
Since is in the
denominator for both
and terms, is
always ve
except for
where it goes to zero and blows up the equations, leave it out in the calculations. The ratio of sin and
cos will be unaffected.
If dec_app =
(i.e. at N pole of apparent system) then
| (13) |
-
[RJ] coords: Use SLA_MAP to convert to apparent. Use same method to calculate apparent position of
RB N pole. Derive rotation angle in the same way as for RB.
-
[GA] coords: Use SLA_GALEQ to convert to RJ. Use SLA_MAP to convert to apparent, giving ra_app,
dec_app. Use same method to calculate apparent position of GA N pole, giving ra_N_app,
dec_N_app. Derive rotation angle in the same way as for RB.
-
[EQ] coords: Use SLA_ECLEQ to convert to RJ. Use SLA_MAP to convert to apparent, giving ra_app,
dec_app. Use same method to calculate apparent position of EQ N pole, giving ra_N_app,
dec_N_app. Derive rotation angle in the same way as for RB.
-
[HA] coords: Apparent RA = LST - LONG
Apparent Dec = LAT
Rotation = 0.0D0
-
[RD] coords: Apparent RA, Dec set to input values. Rotation = 0.0.
-
[PLANET] coords: If MJD1 = MJD2 then apparent RA, Dec set to input LONG, LAT. Rotation = 0.0.
Otherwise apparent RA, Dec interpolated (or extrapolated) between LONG, LAT, MJD1 and LONG2,
LAT2, MJD2 according to MJD. Rotation = 0.
Invocation
CALL SCULIB_CALC_APPARENT (LAT_OBS,
LONG, LAT, LONG2, LAT2, MAP_X, MAP_Y, COORD_TYPE, LST, MJD, MJD1, MJD2, RA_APP,
DEC_APP, ROTATION, STATUS)
Arguments
LAT_OBS = DOUBLE PRECISION (Given)
latitude of
observatory (radians)
LONG = DOUBLE PRECISION (Given)
longitude of centre in input coord
system (radians)
LAT = DOUBLE PRECISION (Given)
latitude of centre in input coord system
(radians)
LONG2 = DOUBLE PRECISION (Given)
longitude of second centre in PLANET coord
system (radians)
LAT2 = DOUBLE PRECISION (Given)
latitude of second centre in PLANET coord
system (radians)
MAP_X = DOUBLE PRECISION (Given)
x tangent plane offset of
point from centre (radians) The offset must be in the same coordinate as COORD_TYPE
MAP_Y = DOUBLE PRECISION (Given)
y tangent plane offset of point from centre
(radians) The offset must be in the same coordinate as COORD_TYPE
COORD_TYPE =
CHARACTER()
(Given)
Coord system of input centre, RD, RB, RJ, GA, EQ, PLANET
LST = DOUBLE
PRECISION (Given)
LST for requested coordinates (for AZ and HA)
MJD = DOUBLE
PRECISION (Given)
Modified Julian date of observation
MJD1 = DOUBLE PRECISION
(Given)
Modified Julian date of first centre in PLANET coord system
MJD2 = DOUBLE
PRECISION (Given)
Modified Julian date of second centre in PLANET coord system
RA_APP = DOUBLE PRECISION (Returned)
Apparent RA of point at date (radians)
DEC_APP = DOUBLE PRECISION (Returned)
Apparent Dec
ROTATION = DOUBLE
PRECISION (Returned)
Angle between apparent north and north of input coord system
(radians, measured clockwise from input north)
STATUS = INTEGER (Given and returned)
Global status
Notes:
Does not handle LOCAL_COORDS for MAP_X and MAP_Y (see
SCULIB_APARRENT_2_MP for information on how to do this)
Copyright
Copyright
©1995,1996,1997,1998,1999 Particle Physics and Astronomy Research Council. All Rights Reserved.