-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherfa_def.py
More file actions
5430 lines (5417 loc) · 179 KB
/
erfa_def.py
File metadata and controls
5430 lines (5417 loc) · 179 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
'''This module provides ERFA,\\n\\
the Essential Routine for Fundamental Astronomy,\\n\\
interface to Python\\n\\
'''
from build_extension_module import *
module_name = '_erfa'
module_filename = '_erfamodule.c'
module_doc = __doc__
include_files = ['"structseq.h"',
'<math.h>',
'<time.h>',
'"erfa.h"',
'"erfam.h"',
]
module_localprototype = '' #'''/* local prototype */'''
module_localfunction = '''
/* local function */
static PyObject *
_to_py_vector(double v[3])
{
return Py_BuildValue("(ddd)",
v[0], v[1], v[2]
);
}
static PyObject *
_to_py_matrix(double m[3][3])
{
return Py_BuildValue("((ddd)(ddd)(ddd))",
m[0][0], m[0][1], m[0][2],
m[1][0], m[1][1], m[1][2],
m[2][0], m[2][1], m[2][2]
);
}
static PyObject *
_to_py_astrom(eraASTROM *a)
{
PyObject *v = PyStructSequence_New(&AstromType);
if (v == NULL)
return NULL;
#define SET(i,val) PyStructSequence_SET_ITEM(v, i, PyFloat_FromDouble((double) val))
SET(0, a->pmt);
PyStructSequence_SET_ITEM(v, 1, _to_py_vector(a->eb));
PyStructSequence_SET_ITEM(v, 2, _to_py_vector(a->eh));
SET(3, a->em);
PyStructSequence_SET_ITEM(v, 4, _to_py_vector(a->v));
SET(5, a->bm1);
PyStructSequence_SET_ITEM(v, 6, _to_py_matrix(a->bpn));
SET(7, a->along);
SET(8, a->phi);
SET(9, a->xpl);
SET(10, a->ypl);
SET(11, a->sphi);
SET(12, a->cphi);
SET(13, a->diurab);
SET(14, a->eral);
SET(15, a->refa);
SET(16, a->refb);
if (PyErr_Occurred()) {
Py_XDECREF(v);
return NULL;
}
#undef SET
return v;
}
'''
module_struct_seq = [
## list of 3-tuple
## (name, (struct field, field_doc), description))
('ASTROM', (
("pmt", "PM time interval (SSB, Julian years)"),
("eb", "SSB to observer (vector, au)"),
("eh", "Sun to observer (unit vector)"),
("em", "distance from Sun to observer (au)"),
("v", "barycentric observer velocity (vector, c"),
("bm1", "sqrt(1-|v|^2): reciprocal of Lorenz factor"),
("bpn", "bias-precession-nutation matrix"),
("along", "longitude + s' + dERA(DUT) (radians)"),
("phi", "geodetic latitude (radians)"),
("xpl", "polar motion xp wrt local meridian (radians)"),
("ypl", "polar motion yp wrt local meridian (radians)"),
("sphi", "sine of geodetic latitude"),
("cphi", "cosine of geodetic latitude"),
("diurab", "magnitude of diurnal aberration vector"),
("eral", "local Earth rotation angle (radians)"),
("refa", "refraction constant A (radians)"),
("refb", "refraction constant B (radians)")
),
'''"Star-independent astrometry parameters\\n"
"(Vectors eb, eh, em and v are all with respect to BCRS axes.)"'''
),
('LDBODY', (
("bm", "mass of the body (solar masses)"),
("dl", "deflection limiter (radians^2/2)"),
("pv", "barycentric PV of the body (au, au/day)")
),
'''"Body parameters for light deflection"'''
)
]
module_add = [
## additional module constants
('DPI', 'PyFloat_FromDouble(ERFA_DPI)'),
('D2PI', 'PyFloat_FromDouble(ERFA_D2PI)'),
('DR2D', 'PyFloat_FromDouble(ERFA_DR2D)'),
('DD2R', 'PyFloat_FromDouble(ERFA_DD2R)'),
('DR2AS', 'PyFloat_FromDouble(ERFA_DR2AS)'),
('DAS2R', 'PyFloat_FromDouble(ERFA_DAS2R)'),
('DS2R', 'PyFloat_FromDouble(ERFA_DS2R)'),
('TURNAS', 'PyFloat_FromDouble(ERFA_TURNAS)'),
('DMAS2R', 'PyFloat_FromDouble(ERFA_DMAS2R)'),
('DTY', 'PyFloat_FromDouble(ERFA_DTY)'),
('DAYSEC', 'PyFloat_FromDouble(ERFA_DAYSEC)'),
('DJY', 'PyFloat_FromDouble(ERFA_DJY)'),
('DJC', 'PyFloat_FromDouble(ERFA_DJC)'),
('DJM', 'PyFloat_FromDouble(ERFA_DJM)'),
('DJ00', 'PyFloat_FromDouble(ERFA_DJ00)'),
('DJM0', 'PyFloat_FromDouble(ERFA_DJM0)'),
('DJM00', 'PyFloat_FromDouble(ERFA_DJM00)'),
('DJM77', 'PyFloat_FromDouble(ERFA_DJM77)'),
('TTMTAI', 'PyFloat_FromDouble(ERFA_TTMTAI)'),
('DAU', 'PyFloat_FromDouble(ERFA_DAU)'),
('CMPS', 'PyFloat_FromDouble(ERFA_CMPS)'),
('AULT', 'PyFloat_FromDouble(ERFA_AULT)'),
('DC', 'PyFloat_FromDouble(ERFA_DC)'),
('ELG', 'PyFloat_FromDouble(ERFA_ELG)'),
('ELB', 'PyFloat_FromDouble(ERFA_ELB)'),
('TDB0', 'PyFloat_FromDouble(ERFA_TDB0)'),
('SRS', 'PyFloat_FromDouble(ERFA_SRS)'),
('WGS84', 'PyLong_FromLong(ERFA_WGS84)'),
('GRS80', 'PyLong_FromLong(ERFA_GRS80)'),
('WGS72', 'PyLong_FromLong(ERFA_WGS72)'),
]
module_methods = [
## list of 4-tuple (name, arguments, doc string, CPython function body)
## describing each method
## e.g. :
##('name', 'METH_VARARGS',
## '''"\\nname() -> \\n"
##"the doc string \\n"
##"Given:\\n"
##" x x\\n"
##"Returned:\\n"
##" x \\n"
##" x "''',
## '''{
## return;
##}
##'''),
# astrometry
('ab', 'METH_VARARGS',
'''"\\nab(pnat[3], v[3], s, bm1) -> ppr\\n"
"Apply aberration to transform natural direction into proper direction.\\n"
"Given:\\n"
" pnat natural direction to the source (unit vector)\\n"
" v observer barycentric velocity in units of c\\n"
" s distance between the Sun and the observer (au)\\n"
" bm1 sqrt(1-|v|^2): reciprocal of Lorenz factor\\n"
"Returned:\\n"
" ppr proper direction to source (unit vector)"''',
'''{
double pnat[3], v[3], s, bm1, ppr[3];
if (!PyArg_ParseTuple(args, "(ddd)(ddd)dd",
&pnat[0],&pnat[1],&pnat[2],&v[0],&v[1],&v[2],&s,&bm1))
return NULL;
eraAb(pnat, v, s, bm1, ppr);
return Py_BuildValue("(ddd)",ppr[0], ppr[1], ppr[2]);
}
'''),
('apcg', 'METH_VARARGS',
'''"\\napcg(date1, date2, ebpv[2][3], ehp[3]) -> astrom\\n"
"For a geocentric observer, prepare star-independent astrometry\\n"
"parameters for transformations between ICRS and GCRS coordinates.\\n"
"The Earth ephemeris is supplied by the caller.\\n"
"\\n"
"The parameters produced by this function are required in the\\n"
"parallax, light deflection and aberration parts of the astrometric\\n"
"transformation chain.\\n"
"Given:\\n"
" date1 TDB as a 2-part...\\n"
" date2 ...Julian Date\\n"
" ebpv Earth barycentric pos/vel (au, au/day)\\n"
" ehp Earth heliocentric position (au)\\n"
"Returned:\\n"
" astrom star-independent astrometry parameters"''',
'''{
double date1, date2, ebpv[2][3], ehp[3];
eraASTROM astrom;
if (!PyArg_ParseTuple(args, "dd((ddd)(ddd))(ddd)",
&date1, &date2,
&ebpv[0][0],&ebpv[0][1],&ebpv[0][2],
&ebpv[1][0],&ebpv[1][1],&ebpv[1][2],
&ehp[0],&ehp[1],&ehp[2]))
return NULL;
eraApcg(date1, date2, ebpv, ehp, &astrom);
return _to_py_astrom(&astrom);
}
'''),
('apcg13', 'METH_VARARGS',
'''"\\napcg13(date1, date2) -> astrom\\n"
"For a geocentric observer, prepare star-independent astrometry\\n"
"parameters for transformations between ICRS and GCRS coordinates.\\n"
"The caller supplies the date, and ERFA models are used to predict\\n"
"the Earth ephemeris.\\n"
"\\n"
"The parameters produced by this function are required in the\\n"
"parallax, light deflection and aberration parts of the astrometric\\n"
"transformation chain.\\n"
"Given:\\n"
" date1 TDB as a 2-part...\\n"
" date2 ...Julian Date\\n"
"Returned:\\n"
" astrom star-independent astrometry parameters"''',
'''{
double date1, date2;
eraASTROM astrom;
if (!PyArg_ParseTuple(args, "dd", &date1, &date2))
return NULL;
eraApcg13(date1, date2, &astrom);
return _to_py_astrom(&astrom);
}
'''),
('apci', 'METH_VARARGS',
'''"\\napci(date1, date2, ebpv[2][3], ehp[3], x, y, s) -> astrom\\n"
"For a terrestrial observer, prepare star-independent astrometry\\n"
"parameters for transformations between ICRS and geocentric CIRS\\n"
"coordinates. The Earth ephemeris and CIP/CIO are supplied by the caller.\\n"
"\\n"
"The parameters produced by this function are required in the\\n"
"parallax, light deflection, aberration, and bias-precession-nutation\\n"
"parts of the astrometric transformation chain.\\n"
"Given:\\n"
" date1 TDB as a 2-part...\\n"
" date2 ...Julian Date\\n"
" ebpv Earth barycentric pos/vel (au, au/day)\\n"
" ehp Earth heliocentric position (au)\\n"
" x,y CIP X,Y (components of unit vector)\\n"
" s the CIO locator s (radians)\\n"
"Returned:\\n"
" astrom star-independent astrometry parameters"''',
'''{
double date1, date2, ebpv[2][3], ehp[3], x, y, s;
eraASTROM astrom;
if (!PyArg_ParseTuple(args, "dd((ddd)(ddd))(ddd)ddd",
&date1, &date2,
&ebpv[0][0],&ebpv[0][1],&ebpv[0][2],
&ebpv[1][0],&ebpv[1][1],&ebpv[1][2],
&ehp[0],&ehp[1],&ehp[2],
&x, &y, &s))
return NULL;
eraApci(date1, date2, ebpv, ehp, x, y, s, &astrom);
return _to_py_astrom(&astrom);
}
'''),
('apci13', 'METH_VARARGS',
'''"\\napci13(date1, date2) -> astrom, eo\\n"
"For a terrestrial observer, prepare star-independent astrometry\\n"
"parameters for transformations between ICRS and geocentric CIRS\\n"
"coordinates. The caller supplies the date, and ERFA models are used\\n"
"to predict the Earth ephemeris and CIP/CIO.\\n"
"\\n"
"The parameters produced by this function are required in the\\n"
"parallax, light deflection and aberration parts of the astrometric\\n"
"transformation chain.\\n"
"Given:\\n"
" date1 TDB as a 2-part...\\n"
" date2 ...Julian Date\\n"
"Returned:\\n"
" astrom star-independent astrometry parameters\\n"
" eo equation of the origins (ERA-GST)"''',
'''{
double date1, date2, eo;
eraASTROM astrom;
if (!PyArg_ParseTuple(args, "dd", &date1, &date2))
return NULL;
eraApci13(date1, date2, &astrom, &eo);
return Py_BuildValue("Od", _to_py_astrom(&astrom), eo);
}
'''),
('apco', 'METH_VARARGS',
'''"\\napco(date1, date2, ebpv[2][3], ehp[3], x, y, s,theta,,elong, phi, hm,xp, yp, refa, refb) -> astrom\\n"
"For a terrestrial observer, prepare star-independent astrometry\\n"
"parameters for transformations between ICRS and observed\\n"
"coordinates. The caller supplies the Earth ephemeris, the Earth\\n"
"rotation information and the refraction constants as well as the\\n"
"site coordinates.\\n"
"Given:\\n"
" date1 TDB as a 2-part...\\n"
" date2 ...Julian Date\\n"
" ebpv Earth barycentric pos/vel (au, au/day)\\n"
" ehp Earth heliocentric position (au)\\n"
" x,y CIP X,Y (components of unit vector)\\n"
" s the CIO locator s (radians)\\n"
" theta Earth rotation angle (radians)\\n"
" elong longitude (radians, east +ve)\\n"
" phi latitude (geodetic, radians)\\n"
" hm height above ellipsoid (m, geodetic3)\\n"
" xp,yp polar motion coordinates (radians)\\n"
" sp the TIO locator s' (radians)\\n"
" refa refraction constant A (radians)\\n"
" refb refraction constant B (radians)\\n"
"Returned:\\n"
" astrom star-independent astrometry parameters"''',
'''{
double date1, date2, ebpv[2][3], ehp[3], x, y, s;
double theta, elong, phi, hm, xp, yp;
double sp, refa, refb;
eraASTROM astrom;
if (!PyArg_ParseTuple(args, "dd((ddd)(ddd))(ddd)dddddddddddd",
&date1, &date2,
&ebpv[0][0],&ebpv[0][1],&ebpv[0][2],
&ebpv[1][0],&ebpv[1][1],&ebpv[1][2],
&ehp[0],&ehp[1],&ehp[2],
&x, &y, &s,
&theta, &elong, &phi, &hm, &xp, &yp,
&sp, &refa, &refb))
return NULL;
eraApco(date1, date2, ebpv, ehp, x, y, s,
theta, elong, phi, hm, xp, yp,
sp, refa, refb,
&astrom);
return _to_py_astrom(&astrom);
}
'''),
('apco13', 'METH_VARARGS',
'''"\\napco13(utc1, utc2, dut1, elong, phi, hm, xp, yp, phpa, tc, rh, wl) -> astrom, eo\\n"
"For a terrestrial observer, prepare star-independent astrometry\\n"
"parameters for transformations between ICRS and geocentric CIRS\\n"
"coordinates. The caller supplies the date, and ERFA models are used\\n"
"to predict the Earth ephemeris and CIP/CIO.\\n"
"\\n"
"The parameters produced by this function are required in the\\n"
"parallax, light deflection, aberration, and bias-precession-nutation\\n"
"parts of the ICRS/CIRS transformations.\\n"
"Given:\\n"
" utc1 double UTC as a 2-part...\\n"
" utc2 double ...quasi Julian Date\\n"
" dut1 double UT1-UTC (seconds)\\n"
" theta double Earth rotation angle (radians)\\n"
" elong double longitude (radians, east +ve)\\n"
" phi double latitude (geodetic, radians)\\n"
" hm double height above ellipsoid (m, geodetic)\\n"
" xp,yp double polar motion coordinates (radians)\\n"
" phpa double pressure at the observer (hPa = mB)\\n"
" tc double ambient temperature at the observer (deg C)\\n"
" rh double relative humidity at the observer (range 0-1)\\n"
" wl double wavelength (micrometers)\\n"
"Returned:\\n"
" astrom star-independent astrometry parameters\\n"
" eo equation of the origins (ERA-GST)"''',
'''{
int j;
double utc1, utc2, dut1;
double elong, phi, hm, xp, yp;
double phpa, tc, rh, wl, eo;
eraASTROM astrom;
if (!PyArg_ParseTuple(args, "dddddddddddd",
&utc1, &utc2, &dut1,
&elong, &phi, &hm, &xp, &yp,
&phpa, &tc, &rh, &wl))
return NULL;
j = eraApco13(utc1, utc2, dut1, elong, phi, hm, xp, yp, phpa, tc, rh, wl, &astrom, &eo);
if (j == +1) {
PyErr_SetString(_erfaError, "doubious year");
return NULL;
}
else if (j == -1) {
PyErr_SetString(_erfaError, "unacceptable date");
return NULL;
}
return Py_BuildValue("Od", _to_py_astrom(&astrom), eo);
}
'''),
('apcs', 'METH_VARARGS',
'''"\\napcs(date1, date2, pv[2][3], ebpv[2][3], ehp[3]) -> astrom\\n"
"For an observer whose geocentric position and velocity are known,\\n"
"prepare star-independent astrometry parameters for transformations\\n"
"between ICRS and GCRS. The Earth ephemeris is supplied by the caller.\\n"
"\\n"
"The parameters produced by this function are required in the\\n"
"parallax, light deflection and aberration parts of the astrometric\\n"
"transformation chain.\\n"
"Given:\\n"
" date1 TDB as a 2-part...\\n"
" date2 ...Julian Date\\n"
" pv observer's geocentric pos/vel (m, m/s)\\n"
" ebpv Earth barycentric pos/vel (au, au/day)\\n"
" ehp Earth heliocentric position (au)\\n"
"Returned:\\n"
" astrom star-independent astrometry parameters"''',
'''{
double date1, date2, pv[2][3], ebpv[2][3], ehp[3];
eraASTROM astrom;
if (!PyArg_ParseTuple(args, "dd((ddd)(ddd))((ddd)(ddd))(ddd)",
&date1, &date2,
&pv[0][0],&pv[0][1],&pv[0][2],
&pv[1][0],&pv[1][1],&pv[1][2],
&ebpv[0][0],&ebpv[0][1],&ebpv[0][2],
&ebpv[1][0],&ebpv[1][1],&ebpv[1][2],
&ehp[0],&ehp[1],&ehp[2]))
return NULL;
eraApcs(date1, date2, pv, ebpv, ehp, &astrom);
return _to_py_astrom(&astrom);
}
'''),
('apcs13', 'METH_VARARGS',
'''"\\napcs13(date1, date2, pv[2][3]) -> astrom\\n"
"For an observer whose geocentric position and velocity are known,\\n"
"prepare star-independent astrometry parameters for transformations\\n"
"between ICRS and GCRS. The Earth ephemeris is is from ERFA models.\\n"
"\\n"
"The parameters produced by this function are required in the space\\n"
"motion, parallax, light deflection and aberration parts of the astrometric\\n"
"transformation chain.\\n"
"Given:\\n"
" date1 TDB as a 2-part...\\n"
" date2 ...Julian Date\\n"
" pv observer's geocentric pos/vel (m, m/s)\\n"
"Returned:\\n"
" astrom star-independent astrometry parameters"''',
'''{
double date1, date2, pv[2][3];
eraASTROM astrom;
if (!PyArg_ParseTuple(args, "dd((ddd)(ddd))",
&date1, &date2,
&pv[0][0],&pv[0][1],&pv[0][2],
&pv[1][0],&pv[1][1],&pv[1][2]))
return NULL;
eraApcs13(date1, date2, pv, &astrom);
return _to_py_astrom(&astrom);
}
'''),
##
## aper[13] defined is erfa.py
##
('apio', 'METH_VARARGS',
'''"\\napio(sp,theta,elong,phi,hm,xp,yp,refa,refb) -> astrom\\n"
"For a terrestrial observer, prepare star-independent astrometry\\n"
"parameters for transformations between CIRS and observed\\n"
"coordinates. The caller supplies the Earth orientation information\\n"
"and the refraction constants as well as the site coordinates.\\n"
"Given:\\n"
" sp the TIO locator s'\\n"
" theta Earth rotation angle (radians)\\n"
" elong longitude (radians, east +ve)\\n"
" phi latitude (geodetic, radians)\\n"
" hm height above ellipsoid (m, geodetic3)\\n"
" xp,yp polar motion coordinates (radians)\\n"
" refa refraction constant A (radians)\\n"
" refb refraction constant B (radians)\\n"
"Returned:\\n"" x \\n"
" astrom star-independent astrometry parameters"''',
'''{
double sp, theta, elong, phi, hm, xp, yp, refa, refb;
eraASTROM astrom;
if (!PyArg_ParseTuple(args, "ddddddddd",
&sp, &theta, &elong, &phi, &hm,
&xp, &yp, &refa, &refb))
return NULL;
eraApio(sp,theta,elong,phi,hm,xp,yp,refa,refb, &astrom);
return _to_py_astrom(&astrom);
}
'''),
('apio13', 'METH_VARARGS',
'''"\\napio13(utc1, utc2, dut1, elong, phi, hm, xp, yp, phpa, tc, rh, wl) -> astrom, eo\\n"
"For a terrestrial observer, prepare star-independent astrometry\\n"
"parameters for transformations between CIRS and observed\\n"
"coordinates. The caller supplies UTC, site coordinates, ambient air\\n"
"conditions and observing wavelength.\\n"
"Given:\\n"
" utc1 double UTC as a 2-part...\\n"
" utc2 double ...quasi Julian Date\\n"
" dut1 double UT1-UTC (seconds)\\n"
" elong double longitude (radians, east +ve)\\n"
" phi double latitude (geodetic, radians)\\n"
" hm double height above ellipsoid (m, geodetic)\\n"
" xp,yp double polar motion coordinates (radians)\\n"
" phpa double pressure at the observer (hPa = mB)\\n"
" tc double ambient temperature at the observer (deg C)\\n"
" rh double relative humidity at the observer (range 0-1)\\n"
" wl double wavelength (micrometers)\\n"
"Returned:\\n"
" astrom star-independent astrometry parameters"''',
'''{
int j;
double utc1, utc2, dut1;
double elong, phi, hm, xp, yp;
double phpa, tc, rh, wl;
eraASTROM astrom;
if (!PyArg_ParseTuple(args, "dddddddddddd",
&utc1, &utc2, &dut1,
&elong, &phi, &hm, &xp, &yp,
&phpa, &tc, &rh, &wl))
return NULL;
j = eraApio13(utc1, utc2, dut1, elong, phi, hm, xp, yp, phpa, tc, rh, wl, &astrom);
if (j == +1) {
PyErr_SetString(_erfaError, "doubious year");
return NULL;
}
else if (j == -1) {
PyErr_SetString(_erfaError, "unacceptable date");
return NULL;
}
return _to_py_astrom(&astrom);
}
'''),
('atci13', 'METH_VARARGS',
'''"\\natci13(rc, dc, pr, pd, px, rv, date1, date2) -> ri, di, eo\\n"
"Transform ICRS star data, epoch J2000.0, to CIRS.\\n"
"Given:\\n"
" rc ICRS right ascension at J2000.0 (radians)\\n"
" dc ICRS declination at J2000.0 (radians)\\n"
" pr RA proper motion (radians/year)\\n"
" pd Dec proper motion (radians/year)\\n"
" px parallax (arcsec)\\n"
" rv radial velocity (km/s, +ve if receding)\\n"
" date1 TDB as a 2-part...\\n"
" date2 ...Julian Date\\n"
"Returned:\\n"
" ri,di CIRS geocentric RA,Dec (radians)\\n"
" eo double* equation of the origins (ERA-GST)"''',
'''{
double rc, dc, pr, pd, px, rv, date1, date2;
double ri, di, eo;
if (!PyArg_ParseTuple(args, "dddddddd",
&rc, &dc, &pr, &pd, &px, &rv, &date1, &date2))
return NULL;
eraAtci13(rc, dc, pr, pd, px, rv, date1, date2, &ri, &di, &eo);
return Py_BuildValue("ddd", ri, di, eo);
}
'''),
('atciq', 'METH_VARARGS',
'''"\\natciq( rc, dc, pr, pd, px, rv, astrom) -> ri,di\\n"
"Quick ICRS, epoch J2000.0, to CIRS transformation, given precomputed\\n"
"star-independent astrometry parameters.\\n"
"\\n"
"Use of this function is appropriate when efficiency is important and\\n"
"where many star positions are to be transformed for one date. The\\n"
"star-independent parameters can be obtained by calling one of the\\n"
"functions apci[13], apcg[13], apco[13] or apcs[13].\\n"
"\\n"
"If the parallax and proper motions are zero the eraAtciqz function\\n"
"can be used instead.\\n"
"Given:\\n"
" rc,dc ICRS RA,Dec at J2000.0 (radians)\\n"
" pr RA proper motion (radians/year)\\n"
" pd Dec proper motion (radians/year)\\n"
" px parallax (arcsec)\\n"
" rv radial velocity (km/s, +ve if receding)\\n"
" astrom star-independent astrometry parameters\\n"
"Returned:\\n"
" ri,di CIRS RA,Dec (radians)\\n"''',
'''{
double rc, dc, pr, pd, px, rv;
double ri, di;
double pmt, eb[3], eh[3], em, v[3], bm1, bpn[3][3];
double along, phi, xpl, ypl, sphi, cphi, diurab, eral, refa, refb;
eraASTROM astrom;
if (!PyArg_ParseTuple(args, "ddddddd(ddd)(ddd)d(ddd)d((ddd)(ddd)(ddd))dddddddddd",
&rc, &dc, &pr, &pd, &px, &rv,
&pmt, &eb[0], &eb[1], &eb[2],
&eh[0], &eh[1], &eh[2], &em,
&v[0], &v[1], &v[2], &bm1,
&bpn[0][0],&bpn[0][1],&bpn[0][2],
&bpn[1][0],&bpn[1][1],&bpn[1][2],
&bpn[2][0],&bpn[2][1],&bpn[2][2],
&along, &phi, &xpl, &ypl, &sphi, &cphi, &diurab,
&eral, &refa, &refb))
return NULL;
astrom.pmt = pmt;
astrom.eb[0] = eb[0];
astrom.eb[1] = eb[1];
astrom.eb[2] = eb[2];
astrom.eh[0] = eh[0];
astrom.eh[1] = eh[1];
astrom.eh[2] = eh[2];
astrom.em = em;
astrom.v[0] = v[0];
astrom.v[1] = v[1];
astrom.v[2] = v[2];
astrom.bm1 = bm1;
astrom.bpn[0][0] = bpn[0][0];
astrom.bpn[0][1] = bpn[0][1];
astrom.bpn[0][2] = bpn[0][2];
astrom.bpn[1][0] = bpn[1][0];
astrom.bpn[1][1] = bpn[1][1];
astrom.bpn[1][2] = bpn[1][2];
astrom.bpn[2][0] = bpn[2][0];
astrom.bpn[2][1] = bpn[2][1];
astrom.bpn[2][2] = bpn[2][2];
astrom.along = along;
astrom.phi = phi;
astrom.xpl = xpl;
astrom.ypl = ypl;
astrom.sphi = sphi;
astrom.cphi = cphi;
astrom.diurab = diurab;
astrom.eral = eral;
astrom.refa = refa;
astrom.refb = refb;
eraAtciq(rc, dc, pr, pd, px, rv, &astrom, &ri, &di);
return Py_BuildValue("dd", ri, di);
}
'''),
##
## atciqn see erfa.py
##
('atciqz', 'METH_VARARGS',
'''"\\natciqz( rc, dc, astrom) -> ri,di\\n"
"Quick ICRS to CIRS transformation, given precomputed star-\\n"
"independent astrometry parameters, and assuming zero parallax and proper motion.\\n"
"\\n"
"Use of this function is appropriate when efficiency is important and\\n"
"where many star positions are to be transformed for one date. The\\n"
"star-independent parameters can be obtained by calling one of the\\n"
"functions apci[13], apcg[13], apco[13] or apcs[13].\\n"
"\\n"
"The corresponding function for the case of non-zero parallax and\\n"
"proper motion is atciq.\\n"
"Given:\\n"
" rc,dc ICRS RA,Dec at J2000.0 (radians)\\n"
" astrom star-independent astrometry parameters\\n"
"Returned:\\n"
" ri,di CIRS RA,Dec (radians)\\n"''',
'''{
double rc, dc;
double ri, di;
double pmt, eb[3], eh[3], em, v[3], bm1, bpn[3][3];
double along, phi, xpl, ypl, sphi, cphi, diurab, eral, refa, refb;
eraASTROM astrom;
if (!PyArg_ParseTuple(args, "ddd(ddd)(ddd)d(ddd)d((ddd)(ddd)(ddd))dddddddddd",
&rc, &dc,
&pmt, &eb[0], &eb[1], &eb[2],
&eh[0], &eh[1], &eh[2], &em,
&v[0], &v[1], &v[2], &bm1,
&bpn[0][0],&bpn[0][1],&bpn[0][2],
&bpn[1][0],&bpn[1][1],&bpn[1][2],
&bpn[2][0],&bpn[2][1],&bpn[2][2],
&along, &phi, &xpl, &ypl, &sphi, &cphi, &diurab,
&eral, &refa, &refb))
return NULL;
astrom.pmt = pmt;
astrom.eb[0] = eb[0];
astrom.eb[1] = eb[1];
astrom.eb[2] = eb[2];
astrom.eh[0] = eh[0];
astrom.eh[1] = eh[1];
astrom.eh[2] = eh[2];
astrom.em = em;
astrom.v[0] = v[0];
astrom.v[1] = v[1];
astrom.v[2] = v[2];
astrom.bm1 = bm1;
astrom.bpn[0][0] = bpn[0][0];
astrom.bpn[0][1] = bpn[0][1];
astrom.bpn[0][2] = bpn[0][2];
astrom.bpn[1][0] = bpn[1][0];
astrom.bpn[1][1] = bpn[1][1];
astrom.bpn[1][2] = bpn[1][2];
astrom.bpn[2][0] = bpn[2][0];
astrom.bpn[2][1] = bpn[2][1];
astrom.bpn[2][2] = bpn[2][2];
astrom.along = along;
astrom.phi = phi;
astrom.xpl = xpl;
astrom.ypl = ypl;
astrom.sphi = sphi;
astrom.cphi = cphi;
astrom.diurab = diurab;
astrom.eral = eral;
astrom.refa = refa;
astrom.refb = refb;
eraAtciqz(rc, dc, &astrom, &ri, &di);
return Py_BuildValue("dd", ri, di);
}
'''),
('atco13', 'METH_VARARGS',
'''"\\natco13(rc, dc, pr, pd, px, rv, utc1, utc2, dut1, elong, phi, hm, xp, yp, phpa, tc, rh, wl) -> aob, zob, hob, dob, rob, eo\\n"
"ICRS RA,Dec to observed place. The caller supplies UTC, site\\n"
"coordinates, ambient air conditions and observing wavelength.\\n"
"\\n"
"ERFA models are used for the Earth ephemeris, bias-precession-\\n"
"nutation, Earth orientation and refraction.\\n"
"Given:\\n"
" rc,dc ICRS right ascension at J2000.0 (radians)\\n"
" pr RA proper motion (radians/year)\\n"
" pd Dec proper motion (radians/year)\\n"
" px parallax (arcsec)\\n"
" rv radial velocity (km/s, +ve if receding)\\n"
" utc1 UTC as a 2-part...\\n"
" utc2 ...quasi Julian Date\\n"
" dut1 UT1-UTC (seconds)\\n"
" elong longitude (radians, east +ve)\\n"
" phi latitude (geodetic, radians)\\n"
" hm height above ellipsoid (m, geodetic)\\n"
" xp,yp polar motion coordinates (radians)\\n"
" phpa pressure at the observer (hPa = mB)\\n"
" tc ambient temperature at the observer (deg C)\\n"
" rh relative humidity at the observer (range 0-1)\\n"
" wl wavelength (micrometers)\\n"
"Returned:\\n"
" aob observed azimuth (radians: N=0,E=90)\\n"
" zob observed zenith distance (radians)\\n"
" hob observed hour angle (radians)\\n"
" dob observed declination (radians)\\n"
" rob observed right ascension (CIO-based, radians)\\n"
" eo equation of the origins (ERA-GST)"''',
'''{
int j;
double rc, dc, pr, pd, px, rv, utc1, utc2, dut1, elong, phi, hm, xp, yp, phpa, tc, rh, wl;
double aob, zob, hob, dob, rob, eo;
if (!PyArg_ParseTuple(args, "dddddddddddddddddd",
&rc, &dc,
&pr, &pd, &px, &rv, &utc1, &utc2, &dut1,
&elong, &phi, &hm, &xp, &yp,
&phpa, &tc, &rh, &wl))
return NULL;
j = eraAtco13(rc, dc, pr, pd, px, rv, utc1, utc2, dut1, elong, phi, hm, xp, yp, phpa, tc, rh, wl,
&aob, &zob, &hob, &dob, &rob, &eo);
if (j == +1) {
PyErr_SetString(_erfaError, "doubious year");
return NULL;
}
else if (j == -1) {
PyErr_SetString(_erfaError, "unacceptable date");
return NULL;
}
return Py_BuildValue("dddddd", aob, zob, hob, dob, rob, eo);
}
'''),
('atic13', 'METH_VARARGS',
'''"\\natic13(ri, di, date1, date2) -> rc, dc, eo\\n"
"Transform star RA,Dec from geocentric CIRS to ICRS astrometric.\\n"
"Given:\\n"
" ri,di CIRS geocentric RA,Dec (radians)\\n"
" date1 TDB as a 2-part...\\n"
" date2 ...Julian Date\\n"
"Returned:\\n"
" rc,dc ICRS astrometric RA,Dec (radians)\\n"
" eo equation of the origins (ERA-GST)"''',
'''{
double ri, di, date1, date2;
double rc, dc, eo;
if (!PyArg_ParseTuple(args, "dddd", &ri, &di, &date1, &date2))
return NULL;
eraAtic13(ri, di, date1, date2, &rc, &dc, &eo);
return Py_BuildValue("ddd", rc, dc, eo);
}
'''),
('aticq', 'METH_VARARGS',
'''"\\naticq(ri,di, astrom) -> rc, dc\\n"
"Quick CIRS RA,Dec to ICRS astrometric place, given the star-\\n"
"independent astrometry parameters.\\n"
"\\n"
"Use of this function is appropriate when efficiency is important and\\n"
"where many star positions are all to be transformed for one date. The\\n"
"star-independent parameters can be obtained by calling one of the\\n"
"functions apci[13], apcg[13], apco[13] or apcs[13].\\n"
"Given:\\n"
" ri,di CIRS RA,Dec (radians)\\n"
" astrom star-independent astrometry parameters\\n"
"Returned:\\n"
" rc,dc ICRS astrometric RA,Dec (radians)\\n"''',
'''{
double rc, dc, ri, di;
double pmt, eb[3], eh[3], em, v[3], bm1, bpn[3][3];
double along, phi, xpl, ypl, sphi, cphi, diurab, eral, refa, refb;
eraASTROM astrom;
if (!PyArg_ParseTuple(args, "ddd(ddd)(ddd)d(ddd)d((ddd)(ddd)(ddd))dddddddddd",
&ri, &di,
&pmt, &eb[0], &eb[1], &eb[2],
&eh[0], &eh[1], &eh[2], &em,
&v[0], &v[1], &v[2], &bm1,
&bpn[0][0],&bpn[0][1],&bpn[0][2],
&bpn[1][0],&bpn[1][1],&bpn[1][2],
&bpn[2][0],&bpn[2][1],&bpn[2][2],
&along, &phi, &xpl, &ypl, &sphi, &cphi, &diurab,
&eral, &refa, &refb))
return NULL;
astrom.pmt = pmt;
astrom.eb[0] = eb[0];
astrom.eb[1] = eb[1];
astrom.eb[2] = eb[2];
astrom.eh[0] = eh[0];
astrom.eh[1] = eh[1];
astrom.eh[2] = eh[2];
astrom.em = em;
astrom.v[0] = v[0];
astrom.v[1] = v[1];
astrom.v[2] = v[2];
astrom.bm1 = bm1;
astrom.bpn[0][0] = bpn[0][0];
astrom.bpn[0][1] = bpn[0][1];
astrom.bpn[0][2] = bpn[0][2];
astrom.bpn[1][0] = bpn[1][0];
astrom.bpn[1][1] = bpn[1][1];
astrom.bpn[1][2] = bpn[1][2];
astrom.bpn[2][0] = bpn[2][0];
astrom.bpn[2][1] = bpn[2][1];
astrom.bpn[2][2] = bpn[2][2];
astrom.along = along;
astrom.phi = phi;
astrom.xpl = xpl;
astrom.ypl = ypl;
astrom.sphi = sphi;
astrom.cphi = cphi;
astrom.diurab = diurab;
astrom.eral = eral;
astrom.refa = refa;
astrom.refb = refb;
eraAticq(ri, di, &astrom, &rc, &dc);
return Py_BuildValue("dd", rc, dc);
}
'''),
##
## aticqn see erfa.py
##
('atio13', 'METH_VARARGS',
'''"\\natio13(ri, di, utc1, utc2, dut1, elong, phi, hm, xp, yp, phpa, tc, rh, wl) -> aob, zob, hob, dob, rob\\n"
"CIRS RA,Dec to observed place. The caller supplies UTC, site\\n"
"coordinates, ambient air conditions and observing wavelength.\\n"
"Given:\\n"
" ri CIRS right ascension (CIO-based, radians)\\n"
" di CIRS declination (radians)\\n"
" utc1 UTC as a 2-part...\\n"
" utc2 ...quasi Julian Date\\n"
" dut1 UT1-UTC (seconds)\\n"
" elong longitude (radians, east +ve)\\n"
" phi geodetic latitude (radians)\\n"
" hm height above ellipsoid (m, geodetic)\\n"
" xp,yp polar motion coordinates (radians)\\n"
" phpa pressure at the observer (hPa = mB)\\n"
" tc ambient temperature at the observer (deg C)\\n"
" rh relative humidity at the observer (range 0-1)\\n"
" wl wavelength (micrometers)\\n"
"Returned:\\n"
" aob observed azimuth (radians: N=0,E=90)\\n"
" zob observed zenith distance (radians)\\n"
" hob observed hour angle (radians)\\n"
" dob observed declination (radians)\\n"
" rob observed right ascension (CIO-based, radians)"''',
'''{
int j;
double ri, di, utc1, utc2, dut1, elong, phi, hm, xp, yp, phpa, tc, rh, wl;
double aob, zob, hob, dob, rob;
if (!PyArg_ParseTuple(args, "dddddddddddddd",
&ri, &di, &utc1, &utc2, &dut1,
&elong, &phi, &hm, &xp, &yp,
&phpa, &tc, &rh, &wl))
return NULL;
j = eraAtio13(ri, di, utc1, utc2, dut1, elong, phi, hm, xp, yp, phpa, tc, rh, wl,
&aob, &zob, &hob, &dob, &rob);
if (j == +1) {
PyErr_SetString(_erfaError, "doubious year");
return NULL;
}
else if (j == -1) {
PyErr_SetString(_erfaError, "unacceptable date");
return NULL;
}
return Py_BuildValue("ddddd", aob, zob, hob, dob, rob);
}
'''),
('atioq', 'METH_VARARGS',
'''"\\natioq(ri,di, astrom) -> aob, zob, hob, dob, rob\\n"
"Quick CIRS to observed place transformation.\\n"
"\\n"
"Use of this function is appropriate when efficiency is important and\\n"
"where many star positions are all to be transformed for one date. The\\n"
"star-independent parameters can be obtained by calling\\n"
"apio[13], or apco[13].\\n"
"Given:\\n"
" ri,di CIRS RA,Dec (radians)\\n"
" astrom star-independent astrometry parameters\\n"
"Returned:\\n"
" aob observed azimuth (radians: N=0,E=90)\\n"
" zob observed zenith distance (radians)\\n"
" hob observed hour angle (radians)\\n"
" dob observed declination (radians)\\n"
" rob observed right ascension (CIO-based, radians)"''',
'''{
double ri, di;
double pmt, eb[3], eh[3], em, v[3], bm1, bpn[3][3];
double along, phi, xpl, ypl, sphi, cphi, diurab, eral, refa, refb;
double aob, zob, hob, dob, rob;
eraASTROM astrom;
if (!PyArg_ParseTuple(args, "ddd(ddd)(ddd)d(ddd)d((ddd)(ddd)(ddd))dddddddddd",
&ri, &di,
&pmt, &eb[0], &eb[1], &eb[2],
&eh[0], &eh[1], &eh[2], &em,
&v[0], &v[1], &v[2], &bm1,
&bpn[0][0],&bpn[0][1],&bpn[0][2],
&bpn[1][0],&bpn[1][1],&bpn[1][2],
&bpn[2][0],&bpn[2][1],&bpn[2][2],
&along, &phi, &xpl, &ypl, &sphi, &cphi, &diurab,
&eral, &refa, &refb))
return NULL;
astrom.pmt = pmt;
astrom.eb[0] = eb[0];
astrom.eb[1] = eb[1];
astrom.eb[2] = eb[2];
astrom.eh[0] = eh[0];
astrom.eh[1] = eh[1];
astrom.eh[2] = eh[2];
astrom.em = em;
astrom.v[0] = v[0];
astrom.v[1] = v[1];
astrom.v[2] = v[2];
astrom.bm1 = bm1;
astrom.bpn[0][0] = bpn[0][0];
astrom.bpn[0][1] = bpn[0][1];
astrom.bpn[0][2] = bpn[0][2];
astrom.bpn[1][0] = bpn[1][0];
astrom.bpn[1][1] = bpn[1][1];
astrom.bpn[1][2] = bpn[1][2];
astrom.bpn[2][0] = bpn[2][0];
astrom.bpn[2][1] = bpn[2][1];
astrom.bpn[2][2] = bpn[2][2];
astrom.along = along;
astrom.phi = phi;
astrom.xpl = xpl;
astrom.ypl = ypl;
astrom.sphi = sphi;
astrom.cphi = cphi;
astrom.diurab = diurab;
astrom.eral = eral;
astrom.refa = refa;
astrom.refb = refb;
eraAtioq(ri, di, &astrom, &aob, &zob, &hob, &dob, &rob);
return Py_BuildValue("ddddd", aob, zob, hob, dob, rob);
}
'''),
('atoc13', 'METH_VARARGS',
'''"\\natoc13(type, ob1, ob2, utc1, utc2, dut1, elong, phi, hm, xp, yp, phpa, tc, rh, wl) -> rc, dc\\n"
"Observed place at a groundbased site to to ICRS astrometric RA,Dec.\\n"
"The caller supplies UTC, site coordinates, ambient air conditions\\n"
"and observing wavelength.\\n"
"Given:\\n"
" type type of coordinates - ''R'', ''H'' or ''A''\\n"
" ob1 observed Az, HA or RA (radians; Az is N=0,E=90)\\n"
" ob2 observed ZD or Dec (radians)\\n"
" utc1 UTC as a 2-part...\\n"
" utc2 ...quasi Julian Date\\n"
" dut1 UT1-UTC (seconds\\n"
" elong longitude (radians, east +ve)\\n"
" phi geodetic latitude (radians)\\n"
" hm height above ellipsoid (m, geodetic)\\n"
" xp,yp polar motion coordinates (radians)\\n"
" phpa pressure at the observer (hPa = mB)\\n"
" tc ambient temperature at the observer (deg C)\\n"
" rh relative humidity at the observer (range 0-1)\\n"
" wl wavelength (micrometers)\\n"
"Returned:\\n"
" rc,dc ICRS astrometric RA,Dec (radians)"''',
'''{
int j;
const char *type;
double ob1, ob2, utc1, utc2, dut1;
double elong, phi, hm, xp, yp, phpa, tc, rh, wl;
double rc, dc;
if (!PyArg_ParseTuple(args, "sdddddddddddddd",
&type, &ob1, &ob2, &utc1, &utc2, &dut1,
&elong, &phi, &hm, &xp, &yp, &phpa, &tc, &rh, &wl))
return NULL;
if (strcmp("R", type) == 0 || strcmp("H", type) == 0 || strcmp("A", type) == 0) {
j = eraAtoc13(type, ob1, ob2, utc1, utc2, dut1,
elong, phi, hm, xp, yp, phpa, tc, rh, wl,
&rc, &dc);
}
else {
PyErr_SetString(_erfaError, "unknown type of coordinates");
return NULL;
}
if (j == +1) {
PyErr_SetString(_erfaError, "doubious year");
return NULL;
}
else if (j == -1) {
PyErr_SetString(_erfaError, "unacceptable date");
return NULL;
}
return Py_BuildValue("dd", rc, dc);
}
'''),
('atoi13', 'METH_VARARGS',
'''"\\natoi13(type, ob1, ob2, utc1, utc2, dut1, elong, phi, hm, xp, yp, phpa, tc, rh, wl) -> ri, di\\n"
"Observed place at a groundbased site to to ICRS astrometric RA,Dec.\\n"
"The caller supplies UTC, site coordinates, ambient air conditions\\n"
"and observing wavelength.\\n"
"Given:\\n"
" type type of coordinates - ''R'', ''H'' or ''A''\\n"
" ob1 observed Az, HA or RA (radians; Az is N=0,E=90)\\n"
" ob2 observed ZD or Dec (radians)\\n"
" utc1 UTC as a 2-part...\\n"