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
//! Declarations of the CK data type specific and general CK low
//! level routine parameters.
//!
//! ```text
//! C$ Abstract
//! C
//! C Declarations of the CK data type specific and general CK low
//! C level routine parameters.
//! C
//! C$ Disclaimer
//! C
//! C THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE
//! C CALIFORNIA INSTITUTE OF TECHNOLOGY (CALTECH) UNDER A U.S.
//! C GOVERNMENT CONTRACT WITH THE NATIONAL AERONAUTICS AND SPACE
//! C ADMINISTRATION (NASA). THE SOFTWARE IS TECHNOLOGY AND SOFTWARE
//! C PUBLICLY AVAILABLE UNDER U.S. EXPORT LAWS AND IS PROVIDED "AS-IS"
//! C TO THE RECIPIENT WITHOUT WARRANTY OF ANY KIND, INCLUDING ANY
//! C WARRANTIES OF PERFORMANCE OR MERCHANTABILITY OR FITNESS FOR A
//! C PARTICULAR USE OR PURPOSE (AS SET FORTH IN UNITED STATES UCC
//! C SECTIONS 2312-2313) OR FOR ANY PURPOSE WHATSOEVER, FOR THE
//! C SOFTWARE AND RELATED MATERIALS, HOWEVER USED.
//! C
//! C IN NO EVENT SHALL CALTECH, ITS JET PROPULSION LABORATORY, OR NASA
//! C BE LIABLE FOR ANY DAMAGES AND/OR COSTS, INCLUDING, BUT NOT
//! C LIMITED TO, INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND,
//! C INCLUDING ECONOMIC DAMAGE OR INJURY TO PROPERTY AND LOST PROFITS,
//! C REGARDLESS OF WHETHER CALTECH, JPL, OR NASA BE ADVISED, HAVE
//! C REASON TO KNOW, OR, IN FACT, SHALL KNOW OF THE POSSIBILITY.
//! C
//! C RECIPIENT BEARS ALL RISK RELATING TO QUALITY AND PERFORMANCE OF
//! C THE SOFTWARE AND ANY RELATED MATERIALS, AND AGREES TO INDEMNIFY
//! C CALTECH AND NASA FOR ALL THIRD-PARTY CLAIMS RESULTING FROM THE
//! C ACTIONS OF RECIPIENT IN THE USE OF THE SOFTWARE.
//! C
//! C$ Required_Reading
//! C
//! C CK.REQ
//! C
//! C$ Keywords
//! C
//! C CK
//! C
//! C$ Restrictions
//! C
//! C 1) If new CK types are added, the size of the record passed
//! C between CKRxx and CKExx must be registered as separate
//! C parameter. If this size will be greater than current value
//! C of the CKMRSZ parameter (which specifies the maximum record
//! C size for the record buffer used inside CKPFS) then it should
//! C be assigned to CKMRSZ as a new value.
//! C
//! C$ Author_and_Institution
//! C
//! C N.J. Bachman (JPL)
//! C B.V. Semenov (JPL)
//! C
//! C$ Literature_References
//! C
//! C CK Required Reading.
//! C
//! C$ Version
//! C
//! C- SPICELIB Version 3.0.0, 27-JAN-2014 (NJB)
//! C
//! C Updated to support CK type 6. Maximum degree for
//! C type 5 was updated to be consistent with the
//! C maximum degree for type 6.
//! C
//! C- SPICELIB Version 2.0.0, 19-AUG-2002 (NJB)
//! C
//! C Updated to support CK type 5.
//! C
//! C- SPICELIB Version 1.0.0, 05-APR-1999 (BVS)
//! C
//! C-&
//!
//! C
//! C Number of quaternion components and number of quaternion and
//! C angular rate components together.
//! C
//! INTEGER QSIZ
//! PARAMETER ( QSIZ = 4 )
//!
//! INTEGER QAVSIZ
//! PARAMETER ( QAVSIZ = 7 )
//!
//! C
//! C CK Type 1 parameters:
//! C
//! C CK1DTP CK data type 1 ID;
//! C
//! C CK1RSZ maximum size of a record passed between CKR01
//! C and CKE01.
//! C
//! INTEGER CK1DTP
//! PARAMETER ( CK1DTP = 1 )
//!
//! INTEGER CK1RSZ
//! PARAMETER ( CK1RSZ = 8 )
//!
//! C
//! C CK Type 2 parameters:
//! C
//! C CK2DTP CK data type 2 ID;
//! C
//! C CK2RSZ maximum size of a record passed between CKR02
//! C and CKE02.
//! C
//! INTEGER CK2DTP
//! PARAMETER ( CK2DTP = 2 )
//!
//! INTEGER CK2RSZ
//! PARAMETER ( CK2RSZ = 10 )
//!
//!
//! C
//! C CK Type 3 parameters:
//! C
//! C CK3DTP CK data type 3 ID;
//! C
//! C CK3RSZ maximum size of a record passed between CKR03
//! C and CKE03.
//! C
//! INTEGER CK3DTP
//! PARAMETER ( CK3DTP = 3 )
//!
//! INTEGER CK3RSZ
//! PARAMETER ( CK3RSZ = 17 )
//!
//! C
//! C CK Type 4 parameters:
//! C
//! C CK4DTP CK data type 4 ID;
//! C
//! C CK4PCD parameter defining integer to DP packing schema that
//! C is applied when seven number integer array containing
//! C polynomial degrees for quaternion and angular rate
//! C components packed into a single DP number stored in
//! C actual CK records in a file; the value of must not be
//! C changed or compatibility with existing type 4 CK files
//! C will be lost.
//! C
//! C CK4MXD maximum Chebychev polynomial degree allowed in type 4
//! C records; the value of this parameter must never exceed
//! C value of the CK4PCD;
//! C
//! C CK4SFT number of additional DPs, which are not polynomial
//! C coefficients, located at the beginning of a type 4
//! C CK record that passed between routines CKR04 and CKE04;
//! C
//! C CK4RSZ maximum size of type 4 CK record passed between CKR04
//! C and CKE04; CK4RSZ is computed as follows:
//! C
//! C CK4RSZ = ( CK4MXD + 1 ) * QAVSIZ + CK4SFT
//! C
//! INTEGER CK4DTP
//! PARAMETER ( CK4DTP = 4 )
//!
//! DOUBLE PRECISION CK4PCD
//! PARAMETER ( CK4PCD = 128.D0 )
//!
//! INTEGER CK4MXD
//! PARAMETER ( CK4MXD = 18 )
//!
//! INTEGER CK4SFT
//! PARAMETER ( CK4SFT = 10 )
//!
//! INTEGER CK4RSZ
//! PARAMETER ( CK4RSZ = ( CK4MXD + 1 ) * QAVSIZ + CK4SFT )
//!
//! C
//! C CK Type 5 parameters:
//! C
//! C
//! C CK5DTP CK data type 5 ID;
//! C
//! C CK5MXD maximum polynomial degree allowed in type 5
//! C records.
//! C
//! C CK5MET number of additional DPs, which are not polynomial
//! C coefficients, located at the beginning of a type 5
//! C CK record that passed between routines CKR05 and CKE05;
//! C
//! C CK5MXP maximum packet size for any subtype. Subtype 2
//! C has the greatest packet size, since these packets
//! C contain a quaternion, its derivative, an angular
//! C velocity vector, and its derivative. See ck05.inc
//! C for a description of the subtypes.
//! C
//! C CK5RSZ maximum size of type 5 CK record passed between CKR05
//! C and CKE05; CK5RSZ is computed as follows:
//! C
//! C CK5RSZ = ( CK5MXD + 1 ) * CK5MXP + CK5MET
//! C
//! INTEGER CK5DTP
//! PARAMETER ( CK5DTP = 5 )
//!
//! INTEGER CK5MXD
//! PARAMETER ( CK5MXD = 23 )
//!
//! INTEGER CK5MET
//! PARAMETER ( CK5MET = 4 )
//!
//! INTEGER CK5MXP
//! PARAMETER ( CK5MXP = 14 )
//!
//! INTEGER CK5RSZ
//! PARAMETER ( CK5RSZ = (CK5MXD + 1) * CK5MXP + CK5MET )
//!
//!
//! C
//! C CK Type 6 parameters:
//! C
//! C
//! C CK6DTP CK data type 6 ID;
//! C
//! C CK6MXD maximum polynomial degree allowed in type 6
//! C records.
//! C
//! C CK6MET number of additional DPs, which are not polynomial
//! C coefficients, located at the beginning of a type 6
//! C CK record that passed between routines CKR06 and CKE06;
//! C
//! C CK6MXP maximum packet size for any subtype. Subtype 2
//! C has the greatest packet size, since these packets
//! C contain a quaternion, its derivative, an angular
//! C velocity vector, and its derivative. See ck06.inc
//! C for a description of the subtypes.
//! C
//! C CK6RSZ maximum size of type 6 CK record passed between CKR06
//! C and CKE06; CK6RSZ is computed as follows:
//! C
//! C CK6RSZ = CK6MET + ( CK6MXD + 1 ) * ( CK6PS3 + 1 )
//! C
//! C where CK6PS3 is equal to the parameter CK06PS3 defined
//! C in ck06.inc. Note that the subtype having the largest
//! C packet size (subtype 2) does not give rise to the
//! C largest record size, because that type is Hermite and
//! C requires half the window size used by subtype 3 for a
//! C given polynomial degree.
//! C
//! INTEGER CK6DTP
//! PARAMETER ( CK6DTP = 6 )
//!
//! INTEGER CK6MXD
//! PARAMETER ( CK6MXD = 23 )
//!
//! INTEGER CK6MET
//! PARAMETER ( CK6MET = 4 )
//!
//! C
//! C The parameter CK6PS3 must be in sync with C06PS3 defined in
//! C ck06.inc.
//! C
//! INTEGER CK6PS3
//! PARAMETER ( CK6PS3 = 7 )
//!
//! INTEGER CK6RSZ
//! PARAMETER ( CK6RSZ = ( CK6MXD + 1 ) * ( CK6PS3 + 1 )
//! . + CK6MET )
//!
//! C
//! C
//! C Maximum record size that can be handled by CKPFS. This value
//! C must be set to the maximum of all CKxRSZ parameters (currently
//! C CK5RSZ.)
//! C
//! INTEGER CKMRSZ
//! PARAMETER ( CKMRSZ = CK5RSZ )
//!
//! ```
pub const QSIZ: i32 = 4;
pub const QAVSIZ: i32 = 7;
pub const CK1DTP: i32 = 1;
pub const CK1RSZ: i32 = 8;
pub const CK2DTP: i32 = 2;
pub const CK2RSZ: i32 = 10;
pub const CK3DTP: i32 = 3;
pub const CK3RSZ: i32 = 17;
pub const CK4DTP: i32 = 4;
pub const CK4PCD: f64 = 128.0;
pub const CK4MXD: i32 = 18;
pub const CK4SFT: i32 = 10;
pub const CK4RSZ: i32 = ;
pub const CK5DTP: i32 = 5;
pub const CK5MXD: i32 = 23;
pub const CK5MET: i32 = 4;
pub const CK5MXP: i32 = 14;
pub const CK5RSZ: i32 = ;
pub const CK6DTP: i32 = 6;
pub const CK6MXD: i32 = 23;
pub const CK6MET: i32 = 4;
pub const CK6PS3: i32 = 7;
pub const CK6RSZ: i32 = ;
pub const CKMRSZ: i32 = CK5RSZ;