OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
mscal_struc.h
Go to the documentation of this file.
1 #include <stdint.h>
2 #include "l12_parms.h"
3 #include "passthebuck.h"
4 #include "readL2scan.h"
5 
6 
7 #define SHORTNAME 128
8 
9 typedef char stname[SHORTNAME];
10 typedef char prname[PRODSTRLEN];
11 
12 typedef struct mscal_struct {
13  int32_t sensorID;
14  int32_t nfiles;
15  int32_t npixs;
16  int32_t nbands;
17  int32_t *Lambda;
18  int32_t nprods;
20  char *input_parms;
21  unsigned char *data;
26  int32 *msec;
28  uint8 *mside;
29  uint8 *detnum;
31  float *lon;
32  float *lat;
33  float32 *ddata;
34  char oformat[20];
35 } mscalstr;
36 
37 typedef struct calinput_struct {
38  char ifile [MAXNFILES][FILENAME_MAX];
39  char ofile [FILENAME_MAX];
40  char input_parms[20000];
41  char flaguse [1024];
42  int32_t spixl; /* starting pixel no. of the input (1-rel) */
43  int32_t epixl; /* ending pixel no. of the input (1-rel) */
44  int32_t dpixl; /* pixel subsampling increment */
45  int32_t sline; /* starting line no. of the input (1-rel) */
46  int32_t eline; /* ending line no. of the input (1-rel) */
47  int32_t dline; /* line subsampling increment */
48  char oformat[20];
49 } inputstr;
50 
51 
52 
53 
54 
55 int crosscal_append(char *crosscalfile, mscalstr calstr);
56 int crosscal_read(char *crosscalfile, int32_t subsmpl, mscalstr *calstr);
57 int crosscal_npixs(char *xcalfile, int32_t subsmpl, int32_t *sensorID, int32_t *npixs, int32_t *ngranuls);
58 int32_t alloc_calstr(int32_t nfiles, int32_t npixs, mscalstr *calstr);
59 void free_calstr(mscalstr calstr, int all);
integer, parameter int16
Definition: cubeio.f90:3
char * input_parms
Definition: mscal_struc.h:20
uint8 * detnum
Definition: mscal_struc.h:29
char flaguse[1024]
Definition: mscal_struc.h:41
char oformat[20]
Definition: mscal_struc.h:34
char ofile[FILENAME_MAX]
Definition: mscal_struc.h:39
int32_t alloc_calstr(int32_t nfiles, int32_t npixs, mscalstr *calstr)
Definition: mscal_struc.c:526
int32_t sensorID
Definition: mscal_struc.h:13
int16 * pixnum
Definition: mscal_struc.h:30
int crosscal_npixs(char *xcalfile, int32_t subsmpl, int32_t *sensorID, int32_t *npixs, int32_t *ngranuls)
float * lat
Definition: mscal_struc.h:32
int32_t * Lambda
Definition: mscal_struc.h:17
int crosscal_read(char *crosscalfile, int32_t subsmpl, mscalstr *calstr)
stname * filenames
Definition: mscal_struc.h:22
char ifile[MAXNFILES][FILENAME_MAX]
Definition: mscal_struc.h:38
unsigned char * data
Definition: mscal_struc.h:21
int16 * year
Definition: mscal_struc.h:24
void free_calstr(mscalstr calstr, int all)
Definition: mscal_struc.c:583
int16 * fileID
Definition: mscal_struc.h:23
prname * l2prods
Definition: mscal_struc.h:19
char prname[PRODSTRLEN]
Definition: mscal_struc.h:10
int32_t npixs
Definition: mscal_struc.h:15
char oformat[20]
Definition: mscal_struc.h:48
#define SHORTNAME
Definition: mscal_struc.h:7
int32_t nbands
Definition: mscal_struc.h:16
uint8 * mside
Definition: mscal_struc.h:28
#define MAXNFILES
Definition: l3bin.cpp:20
float32 * ddata
Definition: mscal_struc.h:33
char input_parms[20000]
Definition: mscal_struc.h:40
int32_t nprods
Definition: mscal_struc.h:18
int16 * iscan
Definition: mscal_struc.h:27
float * lon
Definition: mscal_struc.h:31
int crosscal_append(char *crosscalfile, mscalstr calstr)
Definition: mscal_struc.c:128
int16 * day
Definition: mscal_struc.h:25
int32 * msec
Definition: mscal_struc.h:26
int32_t sensorID[MAXNFILES]
Definition: l2bin.cpp:97
char stname[SHORTNAME]
Definition: mscal_struc.h:9
int32_t nfiles
Definition: mscal_struc.h:14