OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
l1_viirs_h5.c File Reference
#include "libnav.h"
#include "l1_viirs_h5.h"
#include "l1.h"
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <dirent.h>
#include <libgen.h>
#include <ctype.h>
Include dependency graph for l1_viirs_h5.c:

Go to the source code of this file.

Macros

#define MAXBANDS   16
 
#define STDMAXSCANS   48 /* for std granule - max # scans */
 
#define NDET   16
 
#define N_MS   2
 
#define NAGGPX   3200
 
#define NUMERATOR   0
 
#define DENOMINATOR   1
 
#define near(x, y)   ( fabsf( x - y ) < 0.001 )
 
#define VSWIR   0
 
#define THERM   1
 
#define CIRRUS   2
 

Functions

void fix_viirs_filename (char *name)
 
int gen_sdr_suite (char *in_file)
 
int set_f_cal_corr (h5io_str *g_id, filehandle *file, int64_t u58_time)
 
int rd_vir_f_tbl (char *file, int64_t u58_time, int corr_loc)
 
int h5ReadAttrInt32 (h5io_str *id, char *attr_name, int32_t *val)
 
int openl1_viirs_h5 (filehandle *file)
 
int readl1_viirs_h5 (filehandle *file, int32_t dline, l1str *l1rec, int lonlat)
 
int closel1_viirs_h5 (filehandle *file)
 

Macro Definition Documentation

◆ CIRRUS

#define CIRRUS   2

Definition at line 60 of file l1_viirs_h5.c.

◆ DENOMINATOR

#define DENOMINATOR   1

Definition at line 29 of file l1_viirs_h5.c.

◆ MAXBANDS

#define MAXBANDS   16

Definition at line 23 of file l1_viirs_h5.c.

◆ N_MS

#define N_MS   2

Definition at line 26 of file l1_viirs_h5.c.

◆ NAGGPX

#define NAGGPX   3200

Definition at line 27 of file l1_viirs_h5.c.

◆ NDET

#define NDET   16

Definition at line 25 of file l1_viirs_h5.c.

◆ near

#define near (   x,
 
)    ( fabsf( x - y ) < 0.001 )

Definition at line 30 of file l1_viirs_h5.c.

◆ NUMERATOR

#define NUMERATOR   0

Definition at line 28 of file l1_viirs_h5.c.

◆ STDMAXSCANS

#define STDMAXSCANS   48 /* for std granule - max # scans */

Definition at line 24 of file l1_viirs_h5.c.

◆ THERM

#define THERM   1

Definition at line 59 of file l1_viirs_h5.c.

◆ VSWIR

#define VSWIR   0

Definition at line 58 of file l1_viirs_h5.c.

Function Documentation

◆ closel1_viirs_h5()

int closel1_viirs_h5 ( filehandle *  file)

Definition at line 1725 of file l1_viirs_h5.c.

◆ fix_viirs_filename()

void fix_viirs_filename ( char *  name)

Definition at line 66 of file l1_viirs_h5.c.

◆ gen_sdr_suite()

int gen_sdr_suite ( char *  in_file)

Definition at line 107 of file l1_viirs_h5.c.

◆ h5ReadAttrInt32()

int h5ReadAttrInt32 ( h5io_str *  id,
char *  attr_name,
int32_t *  val 
)

This function reads a numeric attribute and converts it to a 32 bit int.

Parameters
idHDF5 id for group or file
attr_namename of the attribute to read
valpointer to the 32 bit int where the value will be written
Returns
0 for OK, else 1 for bad

Definition at line 555 of file l1_viirs_h5.c.

◆ openl1_viirs_h5()

int openl1_viirs_h5 ( filehandle *  file)

Definition at line 600 of file l1_viirs_h5.c.

◆ rd_vir_f_tbl()

int rd_vir_f_tbl ( char *  file,
int64_t  u58_time,
int  corr_loc 
)

Definition at line 394 of file l1_viirs_h5.c.

◆ readl1_viirs_h5()

int readl1_viirs_h5 ( filehandle *  file,
int32_t  dline,
l1str *  l1rec,
int  lonlat 
)

Definition at line 1382 of file l1_viirs_h5.c.

◆ set_f_cal_corr()

int set_f_cal_corr ( h5io_str *  g_id,
filehandle *  file,
int64_t  u58_time 
)

Definition at line 217 of file l1_viirs_h5.c.