SWDatabase
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
swepam_i.h
Go to the documentation of this file.
1 /* $Id: swepam_i.h,v 1.5 1998/12/02 01:47:38 asc Exp $ */
2 
3 /* Structure definition for SWI moments */
4 
5 #ifndef SWEPAM_I_H
6 #define SWEPAM_I_H 1
7 
8 #include "swepam_dcali.h"
9 #include "swepam_dengi.h"
10 #include "swepam_dhskpi.h"
11 #include "swepam_dloadi.h"
12 #include "swepam_drawi.h"
13 #include "swepam_dssti.h"
14 #include "swepam_dsti.h"
15 #include "swepam_dsti2.h"
16 #include "swepam_dswi.h"
17 #include "swepam_bri.h"
18 
19 #define DATA_SIZE_RTSW 1344 /* # of bytes in 1 RTSW mode */
20 #define DATA_SIZE_SWI 4352 /* # of bytes in 1 SWI mode */
21 #define I_SPEC 5 /* # of spectral segments */
22 #define I_ANGLE 33 /* # of pixels in RTSW data set */
23 #define I_ANGLE_TOT 96 /* # of pixels in SWI data set */
24 #define I_ESTEP 8 /* # of E steps per angle/seg */
25 #define I_ETOT 40 /* total # of energy steps */
26 #define I_COUNT_RTSW 1320 /* # of counts in 1 RTSW mode */
27 #define I_COUNT_SWI 3840 /* # of counts in 1 SWI mode */
28 #define I_MFHDR 4 /* Major frame header */
29 #define I_RTMFHDR 4 /* Real Time Major frame header */
30 #define I_SSSHDR 5 /* Spectral Segment Header */
31 #define I_DSHDR 2 /* Data Set Header */
32 #define I_CEM 12 /* # of CEMs used in SWI mode */
33 #define I_PHI 61 /* # of phi angles */
34 
35 #include "hdfi.h"
36 #include "swepam.h"
37 
38 struct swepam_i {
39  uint16 year; /* Full four-digit year, eg, 1998 */
40  uint16 yday; /* Day of year, 1-365 (or -366) */
41  uint8 mon; /* Month, 1-12 */
42  uint8 mday; /* Day of month, 1-31 */
43  uint8 hour; /* Hour, 0-23 */
44  uint8 min; /* Minutes past the hour, 0-59 */
45  uint8 sec; /* Seconds, 0-59 */
46  uint32 sct; /* Spacecraft time? */
47 
48  float32 np; /* Proton density, cm-3 */
49  float32 np_bound; /* Proton density, bound */
50  float32 he_ratio; /* Alpha ratio */
51  float32 speed; /* Proton speed, km/s */
52  float32 Ttt[3][3]; /* Temperature tensor */
53  float32 Trr_bound; /* Bounded temperature */
54  float32 Tpara; /* parallel component of temperature */
55  float32 Tperp[2]; /* perp. component of temperature */
56 
57  uint32 limit; /* ??? */
58  uint32 lmx; /* ESA level with max count rate, 0-199 */
59  float32 spin; /* Spacecraft spin rate */
60  uint32 flag3d; /* bitmask flagging "suspect" data */
61  float32 rtsw_counts;
62  float32 rtsw_pc;
63  float32 total_counts;
64  int32 cem_max; /* CEM holding max counts */
65  uint8 imax[I_SPEC];
66  uint8 jmax[I_SPEC];
67  uint8 kmax[I_SPEC];
68 
69  uint8 peak_p; /* Proton peak, index into dist_fun_1d */
70  uint8 break_p_a; /* Break between protons and alphas */
71  uint8 peak_a; /* Alpha peak, index into dist_fun_1d */
72  float32 vel_p_rtn[3]; /* RTN components of proton speeds */
73  float32 vel_a_rtn[3]; /* RTN components of alpha speeds */
74 
75  float32 vel_p_gse[3]; /* GSE components of proton speeds */
76  float32 vel_a_gse[3]; /* GSE components of alpha speeds */
77 
78  float32 sc_pos_gse[3]; /* Spacecraft position at this time, GSE coords */
79 
80  /* Dist Fun */
81  float32 dist_fun_1d[I_ETOT]; /* 1-D Distribution function */
82  float32 flux_1d[I_ETOT]; /* 1-D corrected flux */
83  uint32 counts[I_ETOT]; /* uncorrected counts, over phi & theta */
84 /* uint32 counts_per_cem[12][I_ETOT]; /* ESM ESM ESM */
85 /* uint16 counts_xxx[12][72][I_ETOT]; /* ESM ESM ESM */
86 /* float32 phase; /* ESM ESM ESM */
87 };
88 
89 #endif /* SWEPAM_I_H */
90 
float32 spin
Definition: swepam_i.h:59
uint32 counts[I_ETOT]
Definition: swepam_i.h:83
Definition: swepam_i.h:38
uint8 jmax[I_SPEC]
Definition: swepam_i.h:66
uint8 imax[I_SPEC]
Definition: swepam_i.h:65
float32 vel_p_gse[3]
Definition: swepam_i.h:75
uint8 mday
Definition: swepam_i.h:42
float32 Ttt[3][3]
Definition: swepam_i.h:52
float32 Trr_bound
Definition: swepam_i.h:53
float32 sc_pos_gse[3]
Definition: swepam_i.h:78
float32 vel_a_gse[3]
Definition: swepam_i.h:76
float32 np_bound
Definition: swepam_i.h:49
#define I_SPEC
Definition: swepam_i.h:21
uint16 year
Definition: swepam_i.h:39
float32 Tpara
Definition: swepam_i.h:54
uint8 mon
Definition: swepam_i.h:41
float32 Tperp[2]
Definition: swepam_i.h:55
float32 rtsw_pc
Definition: swepam_i.h:62
float32 flux_1d[I_ETOT]
Definition: swepam_i.h:82
float32 vel_p_rtn[3]
Definition: swepam_i.h:72
uint32 sct
Definition: swepam_i.h:46
#define I_ETOT
Definition: swepam_i.h:25
uint8 sec
Definition: swepam_i.h:45
float32 speed
Definition: swepam_i.h:51
uint32 limit
Definition: swepam_i.h:57
uint8 kmax[I_SPEC]
Definition: swepam_i.h:67
float32 dist_fun_1d[I_ETOT]
Definition: swepam_i.h:81
float32 np
Definition: swepam_i.h:48
uint8 min
Definition: swepam_i.h:44
uint8 break_p_a
Definition: swepam_i.h:70
float32 total_counts
Definition: swepam_i.h:63
int32 cem_max
Definition: swepam_i.h:64
float32 he_ratio
Definition: swepam_i.h:50
uint32 lmx
Definition: swepam_i.h:58
uint16 yday
Definition: swepam_i.h:40
uint8 peak_a
Definition: swepam_i.h:71
uint8 peak_p
Definition: swepam_i.h:69
float32 rtsw_counts
Definition: swepam_i.h:61
float32 vel_a_rtn[3]
Definition: swepam_i.h:73
uint32 flag3d
Definition: swepam_i.h:60
uint8 hour
Definition: swepam_i.h:43