source: trunk/MagicSoft/slalib/fk54z.c@ 18679

Last change on this file since 18679 was 731, checked in by tbretz, 24 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 2.2 KB
Line 
1#include "slalib.h"
2#include "slamac.h"
3void slaFk54z ( double r2000, double d2000, double bepoch,
4 double *r1950, double *d1950,
5 double *dr1950, double *dd1950 )
6/*
7** - - - - - - - - -
8** s l a F k 5 4 z
9** - - - - - - - - -
10**
11** Convert a J2000.0 FK5 star position to B1950.0 FK4 assuming
12** zero proper motion and parallax.
13**
14** (double precision)
15**
16** This routine converts star positions from the new, IAU 1976,
17** FK5, Fricke system to the old, Bessel-Newcomb, FK4 system.
18**
19** Given:
20** r2000,d2000 double J2000.0 FK5 RA,Dec (rad)
21** bepoch double Besselian epoch (e.g. 1950)
22**
23** Returned:
24** *r1950,*d1950 double B1950.0 FK4 RA,Dec (rad) at epoch BEPOCH
25** *dr1950,*dd1950 double B1950.0 FK4 proper motions (rad/trop.yr)
26**
27** Notes:
28**
29** 1) The proper motion in RA is dRA/dt rather than cos(Dec)*dRA/dt.
30**
31** 2) Conversion from Julian epoch 2000.0 to Besselian epoch 1950.0
32** only is provided for. Conversions involving other epochs will
33** require use of the appropriate precession routines before and
34** after this routine is called.
35**
36** 3) Unlike in the slaFK524 routine, the FK5 proper motions, the
37** parallax and the radial velocity are presumed zero.
38**
39** 4) It is the intention that FK5 should be a close approximation
40** to an inertial frame, so that distant objects have zero proper
41** motion; such objects have (in general) non-zero proper motion
42** in FK4, and this routine returns those fictitious proper
43** motions.
44**
45** 5) The position returned by this routine is in the B1950
46** reference frame but at Besselian epoch bepoch. For
47** comparison with catalogues the bepoch argument will
48** frequently be 1950.0.
49**
50** Called: slaFk524, slaPm
51**
52** Last revision: 30 October 1993
53**
54** Copyright P.T.Wallace. All rights reserved.
55*/
56{
57 static double zero = 0.0;
58
59 double r, d, px, rv;
60
61/* FK5 equinox J2000 (any epoch) to FK4 equinox B1950 epoch B1950 */
62 slaFk524 ( r2000, d2000, zero, zero, zero, zero,
63 &r, &d, dr1950, dd1950, &px, &rv );
64
65/* Fictitious proper motion to epoch bepoch */
66 slaPm ( r, d, *dr1950, *dd1950, zero, zero, 1950.0, bepoch,
67 r1950, d1950 );
68}
Note: See TracBrowser for help on using the repository browser.