NASA Logo
Ocean Color Science Software

ocssw V2022
get_uncertainty.c File Reference
#include "l12_proto.h"
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include <sys/time.h>
#include <hdf5.h>
Include dependency graph for get_uncertainty.c:

Go to the source code of this file.

Macros

#define ERRCODE   2
 
#define ERR(e)   {printf("Error: %s\n", nc_strerror(e)); exit(ERRCODE);}
 
#define N_anc   7
 

Functions

unsigned long int random_seed ()
 
float make_noise (float sigma)
 
void noise_model_ocis (l1str *l1rec, float *noise)
 
int noise_index_oci (float wave)
 
void set_error_input (l1str *l1rec, float *sensor_noise)
 
float * get_uncertainty (l1str *l1rec)
 

Macro Definition Documentation

◆ ERR

#define ERR (   e)    {printf("Error: %s\n", nc_strerror(e)); exit(ERRCODE);}

Definition at line 12 of file get_uncertainty.c.

◆ ERRCODE

#define ERRCODE   2

Definition at line 11 of file get_uncertainty.c.

◆ N_anc

#define N_anc   7

Function Documentation

◆ get_uncertainty()

float* get_uncertainty ( l1str *  l1rec)

Definition at line 331 of file get_uncertainty.c.

◆ make_noise()

float make_noise ( float  sigma)

Definition at line 21 of file get_uncertainty.c.

◆ noise_index_oci()

int noise_index_oci ( float  wave)

derive the index of OCI wavelength in MODIS wavelength domain

Definition at line 124 of file get_uncertainty.c.

◆ noise_model_ocis()

void noise_model_ocis ( l1str *  l1rec,
float *  noise 
)

Definition at line 32 of file get_uncertainty.c.

◆ random_seed()

unsigned long int random_seed ( )

Definition at line 14 of file get_uncertainty.c.

◆ set_error_input()

void set_error_input ( l1str *  l1rec,
float *  sensor_noise 
)

Definition at line 145 of file get_uncertainty.c.