OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
GEO_DEM.c File Reference
#include <float.h>
#include <ctype.h>
#include <stddef.h>
#include "PGS_MODIS_35251.h"
#include "GEO_DEM.h"
#include "GEO_earth.h"
#include "smfio.h"
Include dependency graph for GEO_DEM.c:

Go to the source code of this file.

Classes

struct  tile_cache_struct
 

Macros

#define DEGREE_STRING   "Decimal Degree (DD)"
 
#define METER_STRING   "METERS"
 
#define DEMCACHE   50 /* number of entries for tile_cache_struct */
 
#define LAYERS   1
 
#define TILES_BASE   90.0
 
#define COSLAT_OFFSET   0.1059
 
#define BORDER   0.004084
 

Functions

void geoDemInitGlobals ()
 
PGSt_SMF_status GEO_initialize_DEM (void)
 
void * GEO_DEMalloc (size_t size)
 
int GEO_read_DEM (double lat, double lon, int *const hgtmin, int *const hgtmax)
 
int GEO_latlon2height (double const lat, double const lon, double *const h)
 
int GEO_close_DEM (void)
 

Variables

PGSt_DEM_Tag DEM_resolutions [RESOLUTIONS] = {PGSd_DEM_30ARC}
 
double min_lat = LAT_FVALUE
 
double max_lon = LONG_FVALUE
 
tile_cache_structtile_cache
 
unsigned short int tiles_cached =0
 

Macro Definition Documentation

◆ BORDER

#define BORDER   0.004084

◆ COSLAT_OFFSET

#define COSLAT_OFFSET   0.1059

◆ DEGREE_STRING

#define DEGREE_STRING   "Decimal Degree (DD)"

Definition at line 56 of file GEO_DEM.c.

◆ DEMCACHE

#define DEMCACHE   50 /* number of entries for tile_cache_struct */

Definition at line 58 of file GEO_DEM.c.

◆ LAYERS

#define LAYERS   1

Definition at line 67 of file GEO_DEM.c.

◆ METER_STRING

#define METER_STRING   "METERS"

Definition at line 57 of file GEO_DEM.c.

◆ TILES_BASE

#define TILES_BASE   90.0

Function Documentation

◆ GEO_close_DEM()

int GEO_close_DEM ( void  )

Definition at line 1093 of file GEO_DEM.c.

◆ GEO_DEMalloc()

void* GEO_DEMalloc ( size_t  size)

Definition at line 321 of file GEO_DEM.c.

◆ GEO_initialize_DEM()

PGSt_SMF_status GEO_initialize_DEM ( void  )

Definition at line 134 of file GEO_DEM.c.

◆ GEO_latlon2height()

int GEO_latlon2height ( double const  lat,
double const  lon,
double *const  h 
)

Definition at line 944 of file GEO_DEM.c.

◆ GEO_read_DEM()

int GEO_read_DEM ( double  lat,
double  lon,
int *const  hgtmin,
int *const  hgtmax 
)

Definition at line 395 of file GEO_DEM.c.

◆ geoDemInitGlobals()

void geoDemInitGlobals ( )

Definition at line 123 of file GEO_DEM.c.

Variable Documentation

◆ DEM_resolutions

PGSt_DEM_Tag DEM_resolutions[RESOLUTIONS] = {PGSd_DEM_30ARC}

Definition at line 62 of file GEO_DEM.c.

◆ max_lon

double max_lon = LONG_FVALUE

Definition at line 64 of file GEO_DEM.c.

◆ min_lat

double min_lat = LAT_FVALUE

Definition at line 63 of file GEO_DEM.c.

◆ tile_cache

tile_cache_struct* tile_cache

Definition at line 119 of file GEO_DEM.c.

◆ tiles_cached

unsigned short int tiles_cached =0

Definition at line 120 of file GEO_DEM.c.