OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
swl1_hdf.h File Reference
#include <stdio.h>
#include "swl0_struc.h"
#include "swl1_struc.h"
#include "mfhdf.h"
#include "passthebuck.h"
Include dependency graph for swl1_hdf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MALLOC(ptr, typ, num)
 
#define CALLOC(ptr, typ, num)
 

Functions

char * L1aFilename (swl0ctl *l0ctl, double, unsigned char)
 
char * DataTypeString (swl0ctl *l0ctl, unsigned char)
 
char * DTypeString (unsigned char)
 
int CreateL1aFile (char *, swl0scene *, char *, char *, swl0ctl *)
 
int CloseL1aFile (l1met *)
 
int CreateScanData (int32 ns, int32 np)
 
int WriteScanData (int32, swl1rec *)
 
void DecomposeTime (double, int16 *, int16 *, int32 *)
 
int AddCalData (void)
 
int AddTiltData (int32, int16 f[20], int16 r[20][2], float32 lat[20][2][2], float32 lon[20][2][2])
 
int MakeVgroups (void)
 

Macro Definition Documentation

◆ CALLOC

#define CALLOC (   ptr,
  typ,
  num 
)
Value:
{ \
(ptr) = (typ *)calloc((num) , sizeof(typ)); \
if((ptr) == NULL){ \
fprintf(stderr,"-E- %s line %d: Memory allocation failure.\n", \
__FILE__,__LINE__); \
} \
}

Definition at line 21 of file swl1_hdf.h.

◆ MALLOC

#define MALLOC (   ptr,
  typ,
  num 
)
Value:
{ \
(ptr) = (typ *)malloc((num) * sizeof(typ)); \
if((ptr) == NULL){ \
fprintf(stderr, \
"-E- %s line %d: Memory allocation failure.\n", \
__FILE__,__LINE__); \
} \
}

Definition at line 11 of file swl1_hdf.h.

Function Documentation

◆ AddCalData()

int AddCalData ( void  )

Definition at line 911 of file swl1_hdf.c.

◆ AddTiltData()

int AddTiltData ( int32  ,
int16  f[20],
int16  r[20][2],
float32  lat[20][2][2],
float32  lon[20][2][2] 
)

Definition at line 810 of file swl1_hdf.c.

◆ CloseL1aFile()

int CloseL1aFile ( l1met *  )

Definition at line 777 of file swl1_hdf.c.

◆ CreateL1aFile()

int CreateL1aFile ( char *  ,
swl0scene *  ,
char *  ,
char *  ,
swl0ctl *   
)

Definition at line 39 of file swl1_hdf.c.

◆ CreateScanData()

int CreateScanData ( int32  ns,
int32  np 
)

Definition at line 195 of file swl1_hdf.c.

◆ DataTypeString()

char* DataTypeString ( swl0ctl *  l0ctl,
unsigned char   
)

Definition at line 1294 of file swl1_hdf.c.

◆ DecomposeTime()

void DecomposeTime ( double  ,
int16 *  ,
int16 *  ,
int32 *   
)

Definition at line 1331 of file swl1_hdf.c.

◆ DTypeString()

char* DTypeString ( unsigned char  )

Definition at line 1275 of file swl1_hdf.c.

◆ L1aFilename()

char* L1aFilename ( swl0ctl *  l0ctl,
double  ,
unsigned char   
)

Definition at line 1245 of file swl1_hdf.c.

◆ MakeVgroups()

int MakeVgroups ( void  )

Definition at line 1128 of file swl1_hdf.c.

◆ WriteScanData()

int WriteScanData ( int32  ,
swl1rec *   
)

Definition at line 672 of file swl1_hdf.c.

#define NULL
Definition: decode_rs.h:63
#define MEMORY_ALLOCATION_ERROR
Definition: passthebuck.h:6