OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
swl1_hdf.h
Go to the documentation of this file.
1 #ifndef _SWL1_HDF_H_
2 #define _SWL1_HDF_H_
3 
4 #include <stdio.h>
5 #include "swl0_struc.h"
6 #include "swl1_struc.h"
7 #include "mfhdf.h"
8 #include "passthebuck.h"
9 
10 
11 #define MALLOC(ptr,typ,num) { \
12  (ptr) = (typ *)malloc((num) * sizeof(typ)); \
13  if((ptr) == NULL){ \
14  fprintf(stderr, \
15  "-E- %s line %d: Memory allocation failure.\n", \
16  __FILE__,__LINE__); \
17  return(MEMORY_ALLOCATION_ERROR); \
18  } \
19 }
20 
21 #define CALLOC(ptr,typ,num) { \
22  (ptr) = (typ *)calloc((num) , sizeof(typ)); \
23  if((ptr) == NULL){ \
24  fprintf(stderr,"-E- %s line %d: Memory allocation failure.\n", \
25  __FILE__,__LINE__); \
26  return(MEMORY_ALLOCATION_ERROR); \
27  } \
28 }
29 
30 char * L1aFilename(swl0ctl *l0ctl, double, unsigned char);
31 char * DataTypeString(swl0ctl *l0ctl, unsigned char);
32 char * DTypeString(unsigned char);
33 int CreateL1aFile(char *, swl0scene *, char *, char *, swl0ctl *);
34 int CloseL1aFile(l1met *);
35 int CreateScanData(int32 ns, int32 np);
36 int WriteScanData(int32, swl1rec *);
37 void DecomposeTime(double, int16 *, int16 *, int32 *);
38 int AddCalData(void);
39 int AddTiltData(int32, int16 f[20], int16 r[20][2],
40  float32 lat[20][2][2], float32 lon[20][2][2]);
41 int MakeVgroups(void);
42 
43 #endif /* _SWL1_HDF_H_ */
integer, parameter int16
Definition: cubeio.f90:3
int r
Definition: decode_rs.h:73
void DecomposeTime(double, int16 *, int16 *, int32 *)
Definition: swl1_hdf.c:1331
float * lat
char * L1aFilename(swl0ctl *l0ctl, double, unsigned char)
Definition: swl1_hdf.c:1245
int AddTiltData(int32, int16 f[20], int16 r[20][2], float32 lat[20][2][2], float32 lon[20][2][2])
Definition: swl1_hdf.c:810
double precision function f(R1)
Definition: tmd.lp.f:1454
int AddCalData(void)
Definition: swl1_hdf.c:911
int WriteScanData(int32, swl1rec *)
Definition: swl1_hdf.c:672
int CreateL1aFile(char *, swl0scene *, char *, char *, swl0ctl *)
Definition: swl1_hdf.c:39
char * DTypeString(unsigned char)
Definition: swl1_hdf.c:1275
int CreateScanData(int32 ns, int32 np)
Definition: swl1_hdf.c:195
float * lon
int CloseL1aFile(l1met *)
Definition: swl1_hdf.c:777
char * DataTypeString(swl0ctl *l0ctl, unsigned char)
Definition: swl1_hdf.c:1294
int MakeVgroups(void)
Definition: swl1_hdf.c:1128