OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
elements.h
Go to the documentation of this file.
1 #ifndef _ELEMENTS_H
2 #define _ELEMENTS_H
3 
4 typedef unsigned char BYTE;
5 typedef short int INT16;
6 typedef int32_t INT32;
7 typedef float FLOAT32;
8 typedef double FLOAT64;
9 
10 typedef struct hdr_struct {
12  BYTE fill[124];
13 } hdrstr;
14 
15 typedef struct orb_struct {
16  FLOAT64 sma; /* Semi-Major Axis (km) */
17  FLOAT64 eccen; /* Eccentricity */
18  FLOAT64 incl; /* Inclination (deg) */
19  FLOAT64 ra; /* Lon. of Asc. Node (deg) */
20  FLOAT64 ap; /* Arg of Periapsis (deg) */
21  FLOAT64 ma; /* Mean anomaly (deg) */
22 } orbstr;
23 
24 typedef struct elements_struct {
25  INT32 year; /* Year (e.g. 1996) */
26  INT32 day; /* Day of year */
27  FLOAT64 sec; /* Seconds of day */
28  orbstr orb1; /* Initial Orbit */
29  orbstr orb2; /* Final (fitted) Orbit */
30  FLOAT64 cdrg; /* Drag Coefficient */
31  INT32 type; /* 0=init, 1=final (fitted) */
32  INT32 fill; /* spare */
33 } elmstr;
34 
35 #endif
double FLOAT64
Definition: elements.h:8
FLOAT64 incl
Definition: elements.h:18
orbstr orb1
Definition: elements.h:28
int32_t INT32
Definition: elements.h:6
orbstr orb2
Definition: elements.h:29
FLOAT64 sec
Definition: elements.h:27
FLOAT64 ap
Definition: elements.h:20
FLOAT64 eccen
Definition: elements.h:17
unsigned char BYTE
Definition: elements.h:4
short int INT16
Definition: elements.h:5
INT32 nrecs
Definition: elements.h:11
FLOAT64 ma
Definition: elements.h:21
float FLOAT32
Definition: elements.h:7
BYTE fill[124]
Definition: elements.h:12
FLOAT64 cdrg
Definition: elements.h:30
FLOAT64 sma
Definition: elements.h:16
FLOAT64 ra
Definition: elements.h:19