SASHE_VAP  1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups
Ozone Utilities

Data Structures

struct  OzoneCell
 Ozone Grid Cell. More...
struct  Ozone
 Ozone Data. More...

Macros

#define DEG_TO_RAD(a)   (a * 0.017453292519943)
 Convert degrees to radians.

Functions

void ozone_free (Ozone *ozone)
 Free an Ozone Structure.
Ozoneozone_init (size_t nlats, float *lats, size_t nlons, float *lons, float **o3rhos, float fwhm, float max_dist, int min_cells, Ozone *ozone)
 Initialize an Ozone Structure.
float ozone_get_columnar_density (Ozone *ozone, float lat, float lon)
 Get the ozone columnar density at a specific location.

Detailed Description


Function Documentation

void ozone_free ( Ozone ozone)

Free an Ozone Structure.

Parameters:
ozone- pointer to the Ozone structure.

Definition at line 65 of file ozone_utils.c.

float ozone_get_columnar_density ( Ozone ozone,
float  lat,
float  lon 
)

Get the ozone columnar density at a specific location.

Parameters:
ozonepointer to the Ozone structure.
latlatitude of location in degrees.
lonlongitude of location in degrees.
Return values:
ozonecolumnar density
-1if not enough points were available

Definition at line 181 of file ozone_utils.c.

Ozone* ozone_init ( size_t  nlats,
float *  lats,
size_t  nlons,
float *  lons,
float **  o3rhos,
float  fwhm,
float  max_dist,
int  min_cells,
Ozone ozone 
)

Initialize an Ozone Structure.

The memory used by the returned structure is dynamically allocated and must be freed using the ozone_free() function.

Parameters:
nlats- the number of latitudes
lats- latitude of center of grid cells in degrees
nlons- the number of longitudes
lons- longitudes of center of grid cells in degrees
o3rhos- ozone columnar densities in Dobson Units [lon][lat]
fwhm- full width half maximum in degrees
max_dist- maximum distance to use in degrees
min_cells- minimum number of grid cells required
ozone- pointer to the Ozone structure, or NULL to create a new Ozone structure.
Returns:
:
  • pointer to the Ozone structure
  • NULL if a memory allocation error occurred

Definition at line 98 of file ozone_utils.c.