OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
viirs_sim_sdr.h File Reference
#include "h5io.h"
#include "readL2scan.h"
#include <stdio.h>
#include <string.h>
#include <math.h>
Include dependency graph for viirs_sim_sdr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ctl_struc
 
struct  sdr_info_struc
 
struct  in_rec_struc
 
struct  out_rec_struc
 
struct  h5attr_struc
 
struct  vir_gain_struc
 
struct  vir_rvs_struc
 
struct  vir_straylt_struc
 

Macros

#define NDET   16
 
#define N_VNIR_BND   7
 
#define N_IR_BND   9
 
#define MAX_BND   N_VNIR_BND + N_IR_BND
 
#define MAX_FILES   MAX_BND + 1
 
#define RAD_CGS_2_MKS   10.
 
#define SEC_PER_SCAN   1.7864
 
#define PI   3.141592654
 
#define ONBOARD_PT_FLOAT32_FILL   -999.7
 
#define ONBOARD_PT_UINT16_FILL   65533
 
#define SOUB_UINT16_FILL   65528
 
#define ERR_UINT16_FILL   65531
 
#define MISS_UINT16_FILL   65534
 
#define MISS_FLOAT32_FILL   -999.8
 
#define VIR_SCAN_AGSMP   0 /* aggregated sample # */
 
#define VIR_SCAN_UASMP   1 /* unaggregated sample # */
 
#define VIR_SCAN_ANG   2 /* scan angle, degrees */
 
#define VIR_SCAN_AOI   3 /* AOI on HAM mirror, degrees */
 

Typedefs

typedef long long int64
 
typedef unsigned long long uint64
 

Functions

int check_usage (int, char *[], ctl_struc *)
 
int rd_sim_init (ctl_struc *, sdr_info_struc *, in_rec_struc *)
 
int rd_geo_init (ctl_struc *, sdr_info_struc *, in_rec_struc *)
 
int init_sdr (ctl_struc *, sdr_info_struc *, in_rec_struc *, out_rec_struc *)
 
int init_sdr_top (int, sdr_info_struc *, out_rec_struc *)
 
int init_geo_data (sdr_info_struc *, in_rec_struc *, out_rec_struc *)
 
int init_bnd_data (int, sdr_info_struc *, in_rec_struc *, out_rec_struc *)
 
int init_sdr_dpattr (int, h5io_str *, sdr_info_struc *)
 
int init_sdr_agg (int, h5io_str *, sdr_info_struc *)
 
int init_sdr_gran (int, h5io_str *, sdr_info_struc *, out_rec_struc *)
 
int rd_sdr_scan (int, ctl_struc *, sdr_info_struc *, in_rec_struc *)
 
int rd_geo_scan (int, sdr_info_struc *, in_rec_struc *)
 
int gen_const_rad_scn (sdr_info_struc *, int, in_rec_struc *)
 
int wr_sdr_scan (int, out_rec_struc *)
 
int wr_geo_scan (int, out_rec_struc *)
 
int wr_bnd_scan (int, out_rec_struc *)
 
int fin_sdr (ctl_struc *, in_rec_struc *, out_rec_struc *)
 
int wr_attr_seq (h5io_str *, int, h5attr_struc *)
 
int gen_sdr_fname (int, char *, sdr_info_struc *, int, char *)
 
int rd_rhos_scan (char *, int, int, int, float **)
 
int rhos_to_lt (int, float **, in_rec_struc *, int, sdr_info_struc *)
 
int scan_cvt (in_rec_struc *, out_rec_struc *)
 
int ang_avg (float, float, float, float, float *, float *)
 
int mod_artifact (ctl_struc *, in_rec_struc *)
 
int viirs_oxt (ctl_struc *, in_rec_struc *)
 
int viirs_oxt_ib_read (char *, float *, float *)
 
int viirs_oxt_comp (ctl_struc *, in_rec_struc *)
 
float bbt_2_rad (float, float)
 
int vir_xf_scan (float, int, int, float *)
 
int vset_cal_gain (char *, vir_gain_struc *)
 
int vset_cal_rvs (char *, vir_rvs_struc *)
 
int viirs_cal (ctl_struc *, in_rec_struc *)
 
int viirs_decal (ctl_struc *, in_rec_struc *)
 
int viirs_sim_input (int, char *[], ctl_struc *)
 
int32_t rdsensorinfo (int32_t, int32_t, const char *, void **)
 
int bnd_ix_2_sen_info (char *, void *)
 
int viirs_ext (ctl_struc *, in_rec_struc *)
 
int viirs_noise (ctl_struc *, in_rec_struc *, int)
 
int viirs_noise_coef_rd (char *, float *, float *, float *, float *)
 
int viirs_straylt (ctl_struc *, in_rec_struc *, int)
 
int viirs_straylt_rd (char *, vir_straylt_struc *)
 
int jd_c (int, int, int)
 
int day2mday (int, int, int *, int *)
 

Macro Definition Documentation

◆ ERR_UINT16_FILL

#define ERR_UINT16_FILL   65531

Definition at line 45 of file viirs_sim_sdr.h.

◆ MAX_BND

#define MAX_BND   N_VNIR_BND + N_IR_BND

Definition at line 34 of file viirs_sim_sdr.h.

◆ MAX_FILES

#define MAX_FILES   MAX_BND + 1

Definition at line 35 of file viirs_sim_sdr.h.

◆ MISS_FLOAT32_FILL

#define MISS_FLOAT32_FILL   -999.8

Definition at line 47 of file viirs_sim_sdr.h.

◆ MISS_UINT16_FILL

#define MISS_UINT16_FILL   65534

Definition at line 46 of file viirs_sim_sdr.h.

◆ N_IR_BND

#define N_IR_BND   9

Definition at line 32 of file viirs_sim_sdr.h.

◆ N_VNIR_BND

#define N_VNIR_BND   7

Definition at line 31 of file viirs_sim_sdr.h.

◆ NDET

#define NDET   16

Definition at line 30 of file viirs_sim_sdr.h.

◆ ONBOARD_PT_FLOAT32_FILL

#define ONBOARD_PT_FLOAT32_FILL   -999.7

Definition at line 42 of file viirs_sim_sdr.h.

◆ ONBOARD_PT_UINT16_FILL

#define ONBOARD_PT_UINT16_FILL   65533

Definition at line 43 of file viirs_sim_sdr.h.

◆ PI

#define PI   3.141592654

Definition at line 38 of file viirs_sim_sdr.h.

◆ RAD_CGS_2_MKS

#define RAD_CGS_2_MKS   10.

Definition at line 36 of file viirs_sim_sdr.h.

◆ SEC_PER_SCAN

#define SEC_PER_SCAN   1.7864

Definition at line 37 of file viirs_sim_sdr.h.

◆ SOUB_UINT16_FILL

#define SOUB_UINT16_FILL   65528

Definition at line 44 of file viirs_sim_sdr.h.

◆ VIR_SCAN_AGSMP

#define VIR_SCAN_AGSMP   0 /* aggregated sample # */

Definition at line 51 of file viirs_sim_sdr.h.

◆ VIR_SCAN_ANG

#define VIR_SCAN_ANG   2 /* scan angle, degrees */

Definition at line 53 of file viirs_sim_sdr.h.

◆ VIR_SCAN_AOI

#define VIR_SCAN_AOI   3 /* AOI on HAM mirror, degrees */

Definition at line 54 of file viirs_sim_sdr.h.

◆ VIR_SCAN_UASMP

#define VIR_SCAN_UASMP   1 /* unaggregated sample # */

Definition at line 52 of file viirs_sim_sdr.h.

Typedef Documentation

◆ int64

typedef long long int64

Definition at line 129 of file viirs_sim_sdr.h.

◆ uint64

typedef unsigned long long uint64

Definition at line 130 of file viirs_sim_sdr.h.

Function Documentation

◆ ang_avg()

int ang_avg ( float  ,
float  ,
float  ,
float  ,
float *  ,
float *   
)

Definition at line 419 of file scan_cvt.c.

◆ bbt_2_rad()

float bbt_2_rad ( float  ,
float   
)

Definition at line 9 of file bbt_2_rad.c.

◆ bnd_ix_2_sen_info()

int bnd_ix_2_sen_info ( char *  ,
void *   
)

Definition at line 4 of file bnd_ix_2_sen_info.c.

◆ check_usage()

int check_usage ( int  ,
char *  [],
ctl_struc *   
)

◆ day2mday()

int day2mday ( int  ,
int  ,
int *  ,
int *   
)

Definition at line 3 of file day2mday.c.

◆ fin_sdr()

int fin_sdr ( ctl_struc *  ,
in_rec_struc *  ,
out_rec_struc *   
)

Definition at line 3 of file fin_sdr.c.

◆ gen_const_rad_scn()

int gen_const_rad_scn ( sdr_info_struc *  ,
int  ,
in_rec_struc *   
)

Definition at line 3 of file gen_const_rad_scn.c.

◆ gen_sdr_fname()

int gen_sdr_fname ( int  ,
char *  ,
sdr_info_struc *  ,
int  ,
char *   
)

Definition at line 3 of file gen_sdr_fname.c.

◆ init_bnd_data()

int init_bnd_data ( int  ,
sdr_info_struc *  ,
in_rec_struc *  ,
out_rec_struc *   
)

Definition at line 837 of file init_sdr.c.

◆ init_geo_data()

int init_geo_data ( sdr_info_struc *  ,
in_rec_struc *  ,
out_rec_struc *   
)

Definition at line 292 of file init_sdr.c.

◆ init_sdr()

int init_sdr ( ctl_struc *  ,
sdr_info_struc *  ,
in_rec_struc *  ,
out_rec_struc *   
)

Definition at line 14 of file init_sdr.c.

◆ init_sdr_agg()

int init_sdr_agg ( int  ,
h5io_str *  ,
sdr_info_struc *   
)

Definition at line 1455 of file init_sdr.c.

◆ init_sdr_dpattr()

int init_sdr_dpattr ( int  ,
h5io_str *  ,
sdr_info_struc *   
)

Definition at line 1388 of file init_sdr.c.

◆ init_sdr_gran()

int init_sdr_gran ( int  ,
h5io_str *  ,
sdr_info_struc *  ,
out_rec_struc *   
)

Definition at line 1541 of file init_sdr.c.

◆ init_sdr_top()

int init_sdr_top ( int  ,
sdr_info_struc *  ,
out_rec_struc *   
)

Definition at line 207 of file init_sdr.c.

◆ jd_c()

int jd_c ( int  ,
int  ,
int   
)

Definition at line 97 of file time_utl.c.

◆ mod_artifact()

int mod_artifact ( ctl_struc *  ,
in_rec_struc *   
)

Definition at line 4 of file mod_artifact.c.

◆ rd_geo_init()

int rd_geo_init ( ctl_struc *  ,
sdr_info_struc *  ,
in_rec_struc *   
)

Definition at line 9 of file rd_geo_init.c.

◆ rd_geo_scan()

int rd_geo_scan ( int  ,
sdr_info_struc *  ,
in_rec_struc *   
)

Definition at line 3 of file rd_geo_scan.c.

◆ rd_rhos_scan()

int rd_rhos_scan ( char *  ,
int  ,
int  ,
int  ,
float **   
)

Definition at line 8 of file rd_rhos_scan.c.

◆ rd_sdr_scan()

int rd_sdr_scan ( int  ,
ctl_struc *  ,
sdr_info_struc *  ,
in_rec_struc *   
)

Definition at line 4 of file rd_sdr_scan.c.

◆ rd_sim_init()

int rd_sim_init ( ctl_struc *  ,
sdr_info_struc *  ,
in_rec_struc *   
)

Definition at line 4 of file rd_sim_init.c.

◆ rdsensorinfo()

int32_t rdsensorinfo ( int32_t  sensorID,
int32_t  evalmask,
const char *  pname,
void **  pval 
)

lookup information about a sensor.

Parameters
sensorIDid of the sensor to lookup
evalmaskset to 32 to get info out of the "eval" directory
pnamename of the parameter to retrieve
pvalpointer to the requested data
Returns
the number of bands, -1 if error

Definition at line 69 of file rdsensorinfo.c.

◆ rhos_to_lt()

int rhos_to_lt ( int  ,
float **  ,
in_rec_struc *  ,
int  ,
sdr_info_struc *   
)

Definition at line 7 of file rhos_to_lt.c.

◆ scan_cvt()

int scan_cvt ( in_rec_struc *  ,
out_rec_struc *   
)

Definition at line 5 of file scan_cvt.c.

◆ viirs_cal()

int viirs_cal ( ctl_struc *  ,
in_rec_struc *   
)

Definition at line 4 of file viirs_cal.c.

◆ viirs_decal()

int viirs_decal ( ctl_struc *  ,
in_rec_struc *   
)

Definition at line 4 of file viirs_decal.c.

◆ viirs_ext()

int viirs_ext ( ctl_struc *  ,
in_rec_struc *   
)

Definition at line 5 of file viirs_ext.c.

◆ viirs_noise()

int viirs_noise ( ctl_struc *  ,
in_rec_struc *  ,
int   
)

Definition at line 9 of file viirs_noise.c.

◆ viirs_noise_coef_rd()

int viirs_noise_coef_rd ( char *  ,
float *  ,
float *  ,
float *  ,
float *   
)

Definition at line 96 of file viirs_noise.c.

◆ viirs_oxt()

int viirs_oxt ( ctl_struc *  ,
in_rec_struc *   
)

Definition at line 9 of file viirs_oxt.c.

◆ viirs_oxt_comp()

int viirs_oxt_comp ( ctl_struc *  ,
in_rec_struc *   
)

Definition at line 281 of file viirs_oxt.c.

◆ viirs_oxt_ib_read()

int viirs_oxt_ib_read ( char *  ,
float *  ,
float *   
)

Definition at line 166 of file viirs_oxt.c.

◆ viirs_sim_input()

int viirs_sim_input ( int  ,
char *  [],
ctl_struc *   
)

Definition at line 7 of file viirs_sim_input.c.

◆ viirs_straylt()

int viirs_straylt ( ctl_struc *  ,
in_rec_struc *  ,
int   
)

Definition at line 7 of file viirs_straylt.c.

◆ viirs_straylt_rd()

int viirs_straylt_rd ( char *  ,
vir_straylt_struc *   
)

Definition at line 140 of file viirs_straylt.c.

◆ vir_xf_scan()

int vir_xf_scan ( float  ,
int  ,
int  ,
float *   
)

Definition at line 3 of file vir_xf_scan.c.

◆ vset_cal_gain()

int vset_cal_gain ( char *  ,
vir_gain_struc *   
)

Definition at line 16 of file vset_cal.c.

◆ vset_cal_rvs()

int vset_cal_rvs ( char *  ,
vir_rvs_struc *   
)

Definition at line 280 of file vset_cal.c.

◆ wr_attr_seq()

int wr_attr_seq ( h5io_str *  ,
int  ,
h5attr_struc *   
)

Definition at line 5 of file wr_attr_seq.c.

◆ wr_bnd_scan()

int wr_bnd_scan ( int  ,
out_rec_struc *   
)

Definition at line 5 of file wr_bnd_scan.c.

◆ wr_geo_scan()

int wr_geo_scan ( int  ,
out_rec_struc *   
)

Definition at line 3 of file wr_geo_scan.c.

◆ wr_sdr_scan()

int wr_sdr_scan ( int  ,
out_rec_struc *   
)

Definition at line 3 of file wr_sdr_scan.c.