OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
InstStatData.h
Go to the documentation of this file.
1 /*
2  * Instrument Status Datafile header definition
3  *
4  * Copyright @1998 Datron/Transco, Inc.
5  *
6  * Originator: P.G. Heffernan
7  *
8  * "%Z% %M% %I% - %E%"
9  *
10  * Description: This include file provides a set
11  * of structures which identify the data
12  * contained in an Instrument Status Data (ISD) file
13  * produced by the KOMPSAT Mission Control Station.
14  * The structure identifies the data contained
15  * in one record contained in an ISD per the
16  * KOMPSAT MCS-IRPE Interface Control Document.
17  *
18  * Version Date Programmer Description
19  * Orig 10/8/98 PG Heffernan Original
20  * 1.1 12/1/99 WD Benton ISD format change, fix interpretation
21  * of OSMI Band limits
22  *
23  */
24 #ifndef ISD_H_DEFINED
25 #define ISD_H_DEFINED
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 /*
32  * Library Defines
33  */
34 
35 /* Sizes */
36 #define ONE_BIT_SIZE 2
37 #define TWO_BIT_SIZE 4
38 #define THREE_BIT_SIZE 8
39 #define FOUR_BIT_SIZE 16
40 #define FIVE_BIT_SIZE 32
41 #define SIX_BIT_SIZE 64
42 #define SEVEN_BIT_SIZE 128
43 #define EIGHT_BIT_SIZE 256
44 
45 /* Time */
46 #define NUM_SEC_PER_MIN 60.0
47 #define NUM_MIN_PER_HOUR 60.0
48 #define NUM_HOUR_PER_DAY 24.0
49 #define FRAC_TIME_DIV 16777216.0
50 
51 /* ISD Specifics */
52 #define INST_STAT_DATA_FILE_WC "INSTR_%04s%02s%02s*_S.DAT"
53 #define ISD_RECORD_SIZE 204
54 #define ISD_SPACECRAFT_TIME_OFFSET 0
55 #define ISD_GPS_TIME_SIZE 26
56 #define ISD_GPS_TIME_OFFSET 11
57 
58 /*
59  * Function Prototypes
60  */
61 
62 /*
63  * Structure Declarations
64  */
66  int quarter_sec_week; /* Quarter Seconds of Week, 0-2,419,199 */
67  int weeks; /* Weeks 0-4,095 */
68 };
69 
71  int year; /* Self explanatory */
72  int month;
73  int day;
74  int hour;
75  int minute;
76  int second;
78 };
79 
81  char cover_position[14]; /* Cover position, No units */
82  int eoc_prim_pwr_stat; /* EOC Primary Power Status, 0:Off, 1:On */
83  int eoc_red_pwr_stat; /* EOC Redundant Power Status, 0:Off, 1:On */
84  int eoc_pri_htr_pwr_stat; /* EOC Primary Heater Power Status, 0:Off, 1:On */
85  int eoc_red_htr_pwr_stat; /* EOC Redundant Heater Power Status, 0:Off, 1:On */
86  int lrc_htr_pwr_stat; /* LRC Heater Power Status, 0:Off, 1:On */
87  int lrc_pwr_stat; /* LRC Power Status, 0:Off, 1:On */
88  char mirror_position[14]; /* Mirror Position */
89  int sps_pri_pwr_stat; /* SPS Primary Power Status, 0:Off, 1:On */
90  int sps_red_pwr_stat; /* SPS Redundant Power Status, 0:Off, 1:On */
91 };
92 
94  int band_1_lo; /* OSMI (LRC) Band 1 Low Edge Frequency Value */
95  int band_1_hi; /* OSMI (LRC) Band 1 High Edge Frequency Value */
96  int band_2_lo; /* OSMI (LRC) Band 2 Low Edge Frequency Value */
97  int band_2_hi; /* OSMI (LRC) Band 2 High Edge Frequency Value */
98  int band_3_lo; /* OSMI (LRC) Band 3 Low Edge Frequency Value */
99  int band_3_hi; /* OSMI (LRC) Band 3 High Edge Frequency Value */
100  int band_4_lo; /* OSMI (LRC) Band 4 Low Edge Frequency Value */
101  int band_4_hi; /* OSMI (LRC) Band 4 High Edge Frequency Value */
102  int band_5_lo; /* OSMI (LRC) Band 5 Low Edge Frequency Value */
103  int band_5_hi; /* OSMI (LRC) Band 5 High Edge Frequency Value */
104  int band_6_lo; /* OSMI (LRC) Band 6 Low Edge Frequency Value */
105  int band_6_hi; /* OSMI (LRC) Band 6 High Edge Frequency Value */
106  int gain; /* OSMI (LRC) Sensor Gain */
107  int offset1; /* OSMI (LRC) Sensor Offset 1 */
108  int offset2; /* OSMI (LRC) Sensor Offset 2 */
109  int offset3; /* OSMI (LRC) Sensor Offset 3 */
110  int offset4; /* OSMI (LRC) Sensor Offset 4 */
111  int temp; /* OSMI (LRC) Sensor Temperature */
112 };
113 
115  float magfield_x; /* Earth Magnetic Field X Component */
116  float magfield_y; /* Earth Magnetic Field Y Component */
117  float magfield_z; /* Earth Magnetic Field Z Component */
118 };
119 
126 };
127 #ifdef __cplusplus
128 }
129 #endif
130 
131 #endif /* ISD_H_DEFINED */
struct isd_spacecraft_time sc_time
Definition: InstStatData.h:121
struct inst_stat_data_earth isd_earth
Definition: InstStatData.h:125
struct inst_stat_data_osmi isd_osmi
Definition: InstStatData.h:124
char cover_position[14]
Definition: InstStatData.h:81
struct inst_stat_data_misc isd_misc
Definition: InstStatData.h:123
struct isd_glob_pos_syst_time gps_time
Definition: InstStatData.h:122
char mirror_position[14]
Definition: InstStatData.h:88