OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
smeta_geometry.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <math.h>
#include "gctp.h"
#include "ias_logging.h"
#include "ias_math.h"
#include "ias_geo.h"
#include "ias_const.h"
#include "smeta_geometry.h"
Include dependency graph for smeta_geometry.c:

Go to the source code of this file.

Macros

#define NUM_INTERP   4 /* Number of points to use in Lagrange interpolation */
 
#define PIX_BUFFER   3 /* Resampling kernel reduction in effective SCA size */
 

Functions

int smeta_geodetic_to_ecef (double lat, double lon, double hgt, IAS_VECTOR *ecef)
 
int smeta_geodetic_to_ecf2lsr (double lat, double lon, double ecf2lsr[3][3])
 
int smeta_proj_to_l1t (SMETA *smeta, int band, double proj_x, double proj_y, double *l1t_line, double *l1t_samp)
 
int smeta_init_projection (SMETA_SCENE_PROJ proj)
 
int smeta_geodetic_to_proj (SMETA_SCENE_PROJ proj, double lat, double lon, double *proj_x, double *proj_y)
 
int smeta_transform_projection (double inx, double iny, double *outx, double *outy)
 
void smeta_release_projection ()
 
int smeta_band_number_to_index (SMETA *smeta, int band)
 

Macro Definition Documentation

◆ NUM_INTERP

#define NUM_INTERP   4 /* Number of points to use in Lagrange interpolation */

Definition at line 21 of file smeta_geometry.c.

◆ PIX_BUFFER

#define PIX_BUFFER   3 /* Resampling kernel reduction in effective SCA size */

Definition at line 22 of file smeta_geometry.c.

Function Documentation

◆ smeta_band_number_to_index()

int smeta_band_number_to_index ( SMETA smeta,
int  band 
)

Definition at line 205 of file smeta_geometry.c.

◆ smeta_geodetic_to_ecef()

int smeta_geodetic_to_ecef ( double  lat,
double  lon,
double  hgt,
IAS_VECTOR ecef 
)

Definition at line 29 of file smeta_geometry.c.

◆ smeta_geodetic_to_ecf2lsr()

int smeta_geodetic_to_ecf2lsr ( double  lat,
double  lon,
double  ecf2lsr[3][3] 
)

Definition at line 48 of file smeta_geometry.c.

◆ smeta_geodetic_to_proj()

int smeta_geodetic_to_proj ( SMETA_SCENE_PROJ  proj,
double  lat,
double  lon,
double *  proj_x,
double *  proj_y 
)

Definition at line 158 of file smeta_geometry.c.

◆ smeta_init_projection()

int smeta_init_projection ( SMETA_SCENE_PROJ  proj)

Definition at line 110 of file smeta_geometry.c.

◆ smeta_proj_to_l1t()

int smeta_proj_to_l1t ( SMETA smeta,
int  band,
double  proj_x,
double  proj_y,
double *  l1t_line,
double *  l1t_samp 
)

Definition at line 73 of file smeta_geometry.c.

◆ smeta_release_projection()

void smeta_release_projection ( )

Definition at line 196 of file smeta_geometry.c.

◆ smeta_transform_projection()

int smeta_transform_projection ( double  inx,
double  iny,
double *  outx,
double *  outy 
)

Definition at line 182 of file smeta_geometry.c.