1 | #include "sofa.h"
|
---|
2 |
|
---|
3 | void iauIr(double r[3][3])
|
---|
4 | /*
|
---|
5 | ** - - - - - -
|
---|
6 | ** i a u I r
|
---|
7 | ** - - - - - -
|
---|
8 | **
|
---|
9 | ** Initialize an r-matrix to the identity matrix.
|
---|
10 | **
|
---|
11 | ** This function is part of the International Astronomical Union's
|
---|
12 | ** SOFA (Standards Of Fundamental Astronomy) software collection.
|
---|
13 | **
|
---|
14 | ** Status: vector/matrix support function.
|
---|
15 | **
|
---|
16 | ** Returned:
|
---|
17 | ** r double[3][3] r-matrix
|
---|
18 | **
|
---|
19 | ** This revision: 2013 June 18
|
---|
20 | **
|
---|
21 | ** SOFA release 2015-02-09
|
---|
22 | **
|
---|
23 | ** Copyright (C) 2015 IAU SOFA Board. See notes at end.
|
---|
24 | */
|
---|
25 | {
|
---|
26 | r[0][0] = 1.0;
|
---|
27 | r[0][1] = 0.0;
|
---|
28 | r[0][2] = 0.0;
|
---|
29 | r[1][0] = 0.0;
|
---|
30 | r[1][1] = 1.0;
|
---|
31 | r[1][2] = 0.0;
|
---|
32 | r[2][0] = 0.0;
|
---|
33 | r[2][1] = 0.0;
|
---|
34 | r[2][2] = 1.0;
|
---|
35 |
|
---|
36 | return;
|
---|
37 |
|
---|
38 | /*----------------------------------------------------------------------
|
---|
39 | **
|
---|
40 | ** Copyright (C) 2015
|
---|
41 | ** Standards Of Fundamental Astronomy Board
|
---|
42 | ** of the International Astronomical Union.
|
---|
43 | **
|
---|
44 | ** =====================
|
---|
45 | ** SOFA Software License
|
---|
46 | ** =====================
|
---|
47 | **
|
---|
48 | ** NOTICE TO USER:
|
---|
49 | **
|
---|
50 | ** BY USING THIS SOFTWARE YOU ACCEPT THE FOLLOWING SIX TERMS AND
|
---|
51 | ** CONDITIONS WHICH APPLY TO ITS USE.
|
---|
52 | **
|
---|
53 | ** 1. The Software is owned by the IAU SOFA Board ("SOFA").
|
---|
54 | **
|
---|
55 | ** 2. Permission is granted to anyone to use the SOFA software for any
|
---|
56 | ** purpose, including commercial applications, free of charge and
|
---|
57 | ** without payment of royalties, subject to the conditions and
|
---|
58 | ** restrictions listed below.
|
---|
59 | **
|
---|
60 | ** 3. You (the user) may copy and distribute SOFA source code to others,
|
---|
61 | ** and use and adapt its code and algorithms in your own software,
|
---|
62 | ** on a world-wide, royalty-free basis. That portion of your
|
---|
63 | ** distribution that does not consist of intact and unchanged copies
|
---|
64 | ** of SOFA source code files is a "derived work" that must comply
|
---|
65 | ** with the following requirements:
|
---|
66 | **
|
---|
67 | ** a) Your work shall be marked or carry a statement that it
|
---|
68 | ** (i) uses routines and computations derived by you from
|
---|
69 | ** software provided by SOFA under license to you; and
|
---|
70 | ** (ii) does not itself constitute software provided by and/or
|
---|
71 | ** endorsed by SOFA.
|
---|
72 | **
|
---|
73 | ** b) The source code of your derived work must contain descriptions
|
---|
74 | ** of how the derived work is based upon, contains and/or differs
|
---|
75 | ** from the original SOFA software.
|
---|
76 | **
|
---|
77 | ** c) The names of all routines in your derived work shall not
|
---|
78 | ** include the prefix "iau" or "sofa" or trivial modifications
|
---|
79 | ** thereof such as changes of case.
|
---|
80 | **
|
---|
81 | ** d) The origin of the SOFA components of your derived work must
|
---|
82 | ** not be misrepresented; you must not claim that you wrote the
|
---|
83 | ** original software, nor file a patent application for SOFA
|
---|
84 | ** software or algorithms embedded in the SOFA software.
|
---|
85 | **
|
---|
86 | ** e) These requirements must be reproduced intact in any source
|
---|
87 | ** distribution and shall apply to anyone to whom you have
|
---|
88 | ** granted a further right to modify the source code of your
|
---|
89 | ** derived work.
|
---|
90 | **
|
---|
91 | ** Note that, as originally distributed, the SOFA software is
|
---|
92 | ** intended to be a definitive implementation of the IAU standards,
|
---|
93 | ** and consequently third-party modifications are discouraged. All
|
---|
94 | ** variations, no matter how minor, must be explicitly marked as
|
---|
95 | ** such, as explained above.
|
---|
96 | **
|
---|
97 | ** 4. You shall not cause the SOFA software to be brought into
|
---|
98 | ** disrepute, either by misuse, or use for inappropriate tasks, or
|
---|
99 | ** by inappropriate modification.
|
---|
100 | **
|
---|
101 | ** 5. The SOFA software is provided "as is" and SOFA makes no warranty
|
---|
102 | ** as to its use or performance. SOFA does not and cannot warrant
|
---|
103 | ** the performance or results which the user may obtain by using the
|
---|
104 | ** SOFA software. SOFA makes no warranties, express or implied, as
|
---|
105 | ** to non-infringement of third party rights, merchantability, or
|
---|
106 | ** fitness for any particular purpose. In no event will SOFA be
|
---|
107 | ** liable to the user for any consequential, incidental, or special
|
---|
108 | ** damages, including any lost profits or lost savings, even if a
|
---|
109 | ** SOFA representative has been advised of such damages, or for any
|
---|
110 | ** claim by any third party.
|
---|
111 | **
|
---|
112 | ** 6. The provision of any version of the SOFA software under the terms
|
---|
113 | ** and conditions specified herein does not imply that future
|
---|
114 | ** versions will also be made available under the same terms and
|
---|
115 | ** conditions.
|
---|
116 | *
|
---|
117 | ** In any published work or commercial product which uses the SOFA
|
---|
118 | ** software directly, acknowledgement (see www.iausofa.org) is
|
---|
119 | ** appreciated.
|
---|
120 | **
|
---|
121 | ** Correspondence concerning SOFA software should be addressed as
|
---|
122 | ** follows:
|
---|
123 | **
|
---|
124 | ** By email: sofa@ukho.gov.uk
|
---|
125 | ** By post: IAU SOFA Center
|
---|
126 | ** HM Nautical Almanac Office
|
---|
127 | ** UK Hydrographic Office
|
---|
128 | ** Admiralty Way, Taunton
|
---|
129 | ** Somerset, TA1 2DN
|
---|
130 | ** United Kingdom
|
---|
131 | **
|
---|
132 | **--------------------------------------------------------------------*/
|
---|
133 | }
|
---|