OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
MetadataP.h
Go to the documentation of this file.
1 #ifndef METADATAP_H
2 #define METADATAP_H
3 
4 #include "Metadata.h"
5 
6 /*
7 !C-INC**********************************************************************
8 !Description: Private header file to be used in Metadata.c only.
9 
10 !Revision History:
11  $Log: MetadataP.h,v $
12  Revision 1.9 2012-06-27 15:57:05-04 xgeng
13  add the doi metadata
14 
15  Revision 1.8 2006-10-30 10:00:13-05 ltan
16  Changed for ANSI-C compliance. Correction for the generation of code change log.
17 
18  Revision 01.03 December 13, 2002 (Razor Issue #188)
19  Added MAX_PRODUCTIONHISTORY_SIZE
20  Alice Isaacman, SAIC GSO (Alice.R.Isaacman.1@gsfc.nasa.gov)
21 
22  Revision 01.02 November 19, 2001 (Razor Issue #169)
23  Added skip_night_hi_res to Write_Global_Metadata header.
24  Moved output_file_indices_t from Metadata.c.
25  Alice Isaacman, SAIC GSO (Alice.R.Isaacman.1@gsfc.nasa.gov)
26 
27  Revision 01.01 Feb 9, 1999
28  Moved define SOLAR_AZIMUTH_ZENITH_SCALE_FACTOR to L1B_SetupP.h.
29  Jim Rogers (rogers@mcst.gsfc.nasa.gov)
30 
31  Revision 01.00 1998
32  part of original Metadata.h
33  Initial development
34  Zhenying Gu(zgu@mcst.gsfc.nasa.gov)
35 
36 !References and Credits:
37  This software is developed by the MODIS Characterization Support
38  Team (MCST)for the National Aeronautics and Space Administration,
39  Goddard Space Flight Center, under contract NAS5-32373.
40 
41  HDF portions developed at the National Center for Supercomputing
42  Applications at the University of Illinois at Urbana-Champaign.
43 
44 !Design Notes:
45 
46 !END********************************************************************
47 */
48 #define L1A_MISSING_ENG_PACKET 65535
49 #define MAX_PRODUCTIONHISTORY_SIZE 255
50 
51 typedef struct
52 {
53  PGSt_PC_Logical fileID;
54  PGSt_integer version;
55  char *hdfAttr;
56 } pgs_meta_t;
57 
58 typedef enum
59 {
66 
67 
68 PGSt_SMF_status Write_Global_Metadata
69  (L1B_Gran_Metadata_t *L1B_Gran_Meta,
70  QA_Data_t *QA,
72  int32 OBC_sd_id,
73  boolean skip_night_hi_res);
74 
75 PGSt_SMF_status Get_Electronics_Status
76  (int32 v_id,
77  int32 num_scans,
78  char *vname,
79  char *fname,
80  int16 *final_value,
81  int16 *is_changed,
82  boolean *no_valid_value);
83 
84 PGSt_SMF_status Get_Elec_Config_Status_Per_Gran
85  (int32 v_id,
86  int32 num_scans,
87  uint32 *Elec_config_status,
88  uint32 *Elec_config_change,
89  uint32 *Elec_config_invalid_flag);
90 
91 PGSt_SMF_status Get_Elec_Config_Status
92  (QA_Common_t *QA_common,
93  int32 v_id,
94  int32 num_scans,
95  uint32 *Elec_config_status,
96  uint32 *Elec_config_change);
97 
98 void get_attr( char *, void *);
99 
100 void get_string_attr( char *, char *);
101 
102 void set_attr(char *, void *);
103 
104 void set_string_attr( char *, char *);
105 
106 void set_ptrstring_attr( char *, char **);
107 
108 void copy_string_attr( char *, char *);
109 
110 void copy_attr( char *, void *);
111 
112 #endif
113 
114 
115 
116 
117 
118 
119 
120 
121 
122 
123 
124 
integer, parameter int16
Definition: cubeio.f90:3
an array had not been initialized Several spelling and grammar corrections were which is read from the appropriate MCF the above metadata values were hard coded A problem calculating the average background DN for SWIR bands when the moon is in the space view port was corrected The new algorithm used to calculate the average background DN for all reflective bands when the moon is in the space view port is now the same as the algorithm employed by the thermal bands For non SWIR changes in the averages are typically less than Also for non SWIR the black body DNs remain a backup in case the SV DNs are not available For SWIR the changes in computed averages were larger because the old which used the black body suffered from contamination by the micron leak As a consequence of the if SV DNs are not available for the SWIR the EV pixels will not be the granule time is used to identify the appropriate tables within the set given for one LUT the first two or last two tables respectively will be used for the interpolation If there is only one LUT in the set of tables
Definition: HISTORY.txt:695
void set_attr(char *, void *)
Definition: Metadata.c:962
@ INDEX_L1B_OBC_FILE
Definition: MetadataP.h:63
int16_t fileID
PGSt_SMF_status Write_Global_Metadata(L1B_Gran_Metadata_t *L1B_Gran_Meta, QA_Data_t *QA, lookup_tables_t *tables, int32 OBC_sd_id, boolean skip_night_hi_res)
Definition: Metadata.c:1849
@ INDEX_L1B_EV_500M_FILE
Definition: MetadataP.h:61
PGSt_SMF_status Get_Elec_Config_Status_Per_Gran(int32 v_id, int32 num_scans, uint32 *Elec_config_status, uint32 *Elec_config_change, uint32 *Elec_config_invalid_flag)
Definition: Metadata.c:2706
void set_string_attr(char *, char *)
Definition: Metadata.c:1014
@ INDEX_L1B_EV_250M_FILE
Definition: MetadataP.h:60
void copy_attr(char *, void *)
Definition: Metadata.c:1121
PGSt_SMF_status Get_Elec_Config_Status(QA_Common_t *QA_common, int32 v_id, int32 num_scans, uint32 *Elec_config_status, uint32 *Elec_config_change)
Definition: Metadata.c:2929
output_file_indices_t
Definition: MetadataP.h:58
@ INDEX_L1B_EV_1000M_FILE
Definition: MetadataP.h:62
void get_attr(char *, void *)
Definition: Metadata.c:850
void copy_string_attr(char *, char *)
Definition: Metadata.c:1162
void get_string_attr(char *, char *)
Definition: Metadata.c:906
PGSt_SMF_status Get_Electronics_Status(int32 v_id, int32 num_scans, char *vname, char *fname, int16 *final_value, int16 *is_changed, boolean *no_valid_value)
Definition: Metadata.c:2555
void set_ptrstring_attr(char *, char **)
Definition: Metadata.c:1069
@ NUM_OUTPUT_FILES
Definition: MetadataP.h:64
version
Definition: setup.py:15