OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
get_height.c File Reference
#include "l12_proto.h"
Include dependency graph for get_height.c:

Go to the source code of this file.

Macros

#define MAX_LAT   89.95
 

Functions

int interp_nc_height (float *xlon, float *xlat, float *height)
 
int interp_dem_height (float *xlon, float *xlat, float *height)
 
int get_nc_height (float *lon, float *lat, float *senz, float *sena, float *height)
 
int get_dem_height (float *lon, float *lat, float *senz, float *sena, float *height)
 
int get_height (l1str *l1rec, int32_t ip, int terrain_corrected)
 

Macro Definition Documentation

◆ MAX_LAT

#define MAX_LAT   89.95

Definition at line 2 of file get_height.c.

Function Documentation

◆ get_dem_height()

int get_dem_height ( float *  lon,
float *  lat,
float *  senz,
float *  sena,
float *  height 
)

◆ get_height()

int get_height ( l1str *  l1rec,
int32_t  ip,
int  terrain_corrected 
)

Load DEM height for one pixel

Parameters
[in]demfile
[in,out]l1str
[in]ip
[in]terrain_corrected
Returns

Definition at line 31 of file get_height.c.

◆ get_nc_height()

int get_nc_height ( float *  xlon,
float *  xlat,
float *  senz,
float *  sena,
float *  height 
)

Perform terrain correction; return DEM value

Parameters
[in,out]xlon,xlat
[in,out]senz
[in]sena
[out]height
Returns

Definition at line 574 of file get_nc_height.c.

◆ interp_dem_height()

int interp_dem_height ( float *  xlon,
float *  xlat,
float *  height 
)

◆ interp_nc_height()

int interp_nc_height ( float *  xlon,
float *  xlat,
float *  height 
)

Return DEM value obtained by interpolating between four nearest points.

Parameters
[in]xlon,xlat
[out]height
Returns

Definition at line 735 of file get_nc_height.c.