OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
mtl_grid.c File Reference
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include "mtl_grid.h"
Include dependency graph for mtl_grid.c:

Go to the source code of this file.

Macros

#define TINY   1.0e-12
 

Functions

int calc_band_grid (WRS2 parms, SMETA smeta, double dellon, VECTOR ecfsun, int band_index, MTL_GRID_BAND *bgrid)
 
int calc_grid_point_ls (WRS2 parms, SMETA smeta, double dellon, int band_index, int sca, VECTOR ecfsun, MTL_GRID_PT *gpt)
 
int calc_band_grid_ls (WRS2 parms, SMETA smeta, double dellon, VECTOR ecfsun, int band_index, MTL_GRID_BAND_LS *bgrid)
 
int calc_grid_fit (MTL_GRID_SCA *sgrid)
 
int calc_grid_fit_ls (MTL_GRID_SCA_LS *sgrid)
 
int simple_inverse (int n, double a[4][4])
 
int calc_grid_point (WRS2 parms, SMETA smeta, double dellon, int band_index, int sca, VECTOR ecfsun, MTL_GRID_PT *gpt)
 
int smeta_angles (double line, double samp, MTL_GRID_BAND bgrid, short *sca_num, short *det_num, double *sat_zn, double *sat_az, double *sun_zn, double *sun_az)
 
int smeta_angles_ls (double line, double samp, MTL_GRID_BAND_LS bgrid, short *sat_zn, short *sat_az, short *sun_zn, short *sun_az)
 

Macro Definition Documentation

◆ TINY

#define TINY   1.0e-12

Definition at line 12 of file mtl_grid.c.

Function Documentation

◆ calc_band_grid()

int calc_band_grid ( WRS2  parms,
SMETA  smeta,
double  dellon,
VECTOR  ecfsun,
int  band_index,
MTL_GRID_BAND bgrid 
)

Definition at line 14 of file mtl_grid.c.

◆ calc_band_grid_ls()

int calc_band_grid_ls ( WRS2  parms,
SMETA  smeta,
double  dellon,
VECTOR  ecfsun,
int  band_index,
MTL_GRID_BAND_LS bgrid 
)

Definition at line 91 of file mtl_grid.c.

◆ calc_grid_fit()

int calc_grid_fit ( MTL_GRID_SCA sgrid)

Definition at line 153 of file mtl_grid.c.

◆ calc_grid_fit_ls()

int calc_grid_fit_ls ( MTL_GRID_SCA_LS sgrid)

Definition at line 223 of file mtl_grid.c.

◆ calc_grid_point()

int calc_grid_point ( WRS2  parms,
SMETA  smeta,
double  dellon,
int  band_index,
int  sca,
VECTOR  ecfsun,
MTL_GRID_PT gpt 
)

Definition at line 315 of file mtl_grid.c.

◆ calc_grid_point_ls()

int calc_grid_point_ls ( WRS2  parms,
SMETA  smeta,
double  dellon,
int  band_index,
int  sca,
VECTOR  ecfsun,
MTL_GRID_PT gpt 
)

Definition at line 400 of file mtl_grid.c.

◆ simple_inverse()

int simple_inverse ( int  n,
double  a[4][4] 
)

Definition at line 292 of file mtl_grid.c.

◆ smeta_angles()

int smeta_angles ( double  line,
double  samp,
MTL_GRID_BAND  bgrid,
short *  sca_num,
short *  det_num,
double *  sat_zn,
double *  sat_az,
double *  sun_zn,
double *  sun_az 
)

Definition at line 485 of file mtl_grid.c.

◆ smeta_angles_ls()

int smeta_angles_ls ( double  line,
double  samp,
MTL_GRID_BAND_LS  bgrid,
short *  sat_zn,
short *  sat_az,
short *  sun_zn,
short *  sun_az 
)

Definition at line 644 of file mtl_grid.c.