OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
meta_l3b.h
Go to the documentation of this file.
1 #ifndef METAL3B_H /* avoid re-inclusion */
2 #define METAL3B_H
3 
4 #include <dfutils.h>
5 #include <hdf5.h>
6 
7 #define SM_ATTRSZ 1024
8 #define MD_ATTRSZ 10000
9 #define LG_ATTRSZ 65535 /* MAX_ORDER is defined in HDF as 65535 */
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 typedef struct {
16  char product_name[SM_ATTRSZ];
18  int sensorID;
19  char sensor_name[SM_ATTRSZ];
20  char data_center[SM_ATTRSZ];
21  char mission[SM_ATTRSZ];
22  char mission_char[SM_ATTRSZ];
24  char sensor_char[SM_ATTRSZ];
25  char station[SM_ATTRSZ];
26  float station_lat;
27  float station_lon;
29  char prod_type[SM_ATTRSZ];
30  char pversion[SM_ATTRSZ];
31  char replace[SM_ATTRSZ];
32  char soft_name[SM_ATTRSZ];
33  char soft_ver[SM_ATTRSZ];
34  char ptime[SM_ATTRSZ];
35  char proc_con[MD_ATTRSZ];
36  char input_parms[LG_ATTRSZ];
38  char infiles[LG_ATTRSZ];
39  double startTime;
40  double endTime;
41  int32_t orbit;
42  int32_t start_orb;
43  int32_t end_orb;
44  char lat_units[SM_ATTRSZ];
45  char lon_units[SM_ATTRSZ];
46  int64_t data_bins;
47  float pct_databins;
48  char binning_scheme[SM_ATTRSZ];
49  float north;
50  float south;
51  float east;
52  float west;
53  double resolution; // in meters
54  char doi[SM_ATTRSZ];
56 } meta_l3bType;
57 
59 int write_l3b_meta_hdf4(int32_t sd_id, meta_l3bType *meta_l3b);
60 int write_l3b_meta_netcdf4(idDS ds_id, meta_l3bType *meta_l3b, int write64bit);
61 
62 int32_t rdattr(int32_t sdfid, char *attr_name, void *buf);
63 int32_t getattrsz(int32_t id, char *attr_name, int32_t *nt, int32_t *count);
64 int32_t read_l3b_meta_hdf4(int32_t sdfid, meta_l3bType *meta_l3b);
65 int32_t read_l3b_meta_hdf5(hid_t grp0, meta_l3bType *meta_l3b);
66 int32_t read_l3b_meta_netcdf4(int ncid, meta_l3bType *meta_l3b);
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 #endif /* METAL3B_H */
void calculate_temporal_range(meta_l3bType *meta_l3b)
int32_t rdattr(int32_t sdfid, char *attr_name, void *buf)
Definition: l3stat_chk.c:853
int32_t read_l3b_meta_hdf5(hid_t grp0, meta_l3bType *meta_l3b)
int32_t read_l3b_meta_hdf4(int32_t sdfid, meta_l3bType *meta_l3b)
int32_t start_orb
Definition: meta_l3b.h:42
int32_t getattrsz(int32_t id, char *attr_name, int32_t *nt, int32_t *count)
float station_lon
Definition: meta_l3b.h:27
double endTime
Definition: meta_l3b.h:40
int write_l3b_meta_hdf4(int32_t sd_id, meta_l3bType *meta_l3b)
double resolution
Definition: meta_l3b.h:53
float north
Definition: meta_l3b.h:49
float west
Definition: meta_l3b.h:52
int sensorID
Definition: meta_l3b.h:18
u5 which has been done in the LOCALGRANULEID metadata should have an extension NRT It is requested to identify the NRT production Changes from v6 which may affect scientific the sector rotation may actually occur during one of the scans earlier than the one where it is first reported As a the b1 values are about the LOCALGRANULEID metadata should have an extension NRT It is requested to identify the NRT to fill pixels affected by dead subframes with a special value Output the metadata of noisy and dead subframe Dead Subframe EV and Detector Quality Flag2 Removed the function call of Fill_Dead_Detector_SI to stop interpolating SI values for dead but also for all downstream products for science test only Changes from v5 which will affect scientific to conform to MODIS requirements Removed the Mixed option from the ScanType in the code because the L1A Scan Type is never Mixed Changed for ANSI C compliance and comments to better document the fact that when the HDF_EOS metadata is stricly the and products are off by and in the track respectively Corrected some misspelling of RCS keywords
Definition: HISTORY.txt:278
int32_t orbit
Definition: meta_l3b.h:41
float south
Definition: meta_l3b.h:50
char * flag_names[]
Definition: l2lists.h:46
#define MD_ATTRSZ
Definition: meta_l3b.h:8
double startTime
Definition: meta_l3b.h:39
float pct_databins
Definition: meta_l3b.h:47
int32_t read_l3b_meta_netcdf4(int ncid, meta_l3bType *meta_l3b)
Definition: dfutils.h:28
int write_l3b_meta_netcdf4(idDS ds_id, meta_l3bType *meta_l3b, int write64bit)
float east
Definition: meta_l3b.h:51
int64_t data_bins
Definition: meta_l3b.h:46
#define SM_ATTRSZ
Definition: meta_l3b.h:7
#define LG_ATTRSZ
Definition: meta_l3b.h:9
int32_t end_orb
Definition: meta_l3b.h:43
float station_lat
Definition: meta_l3b.h:26
int count
Definition: decode_rs.h:79