Misc. utilities for operating on geographic coordinates.
More...
#include <GeoUtil.h>
|
static void | ShiftLon (vector< float >::iterator first, vector< float >::iterator last, double bound=360.0) |
|
static void | ShiftLon (vector< double >::iterator first, vector< double >::iterator last, double bound=360.0) |
|
static void | ShiftLon (float *first, float *last, double bound=360.0) |
|
static void | UnwrapLongitude (vector< float >::iterator first, vector< float >::iterator last) |
|
static void | UnwrapLongitude (vector< double >::iterator first, vector< double >::iterator last) |
|
static void | UnwrapLongitude (float *first, float *last) |
|
static void | ExtractBoundary (const float *a, int nx, int ny, float *bdry) |
|
static void | ExtractBoundary (const double *a, int nx, int ny, double *bdry) |
|
static void | SetErrMsg (const char *format,...) |
| Record a formatted error message.
|
|
static void | SetErrMsg (int errcode, const char *format,...) |
| Record a formatted error message and an error code.
|
|
static const char * | GetErrMsg () |
|
static void | SetErrCode (int err_code) |
| Record an error code.
|
|
static int | GetErrCode () |
| Retrieve the current error code.
|
|
static void | SetErrMsgCB (ErrMsgCB_T cb) |
|
static ErrMsgCB_T | GetErrMsgCB () |
|
static void | SetErrMsgFilePtr (FILE *fp) |
|
static const FILE * | SetErrMsgFilePtr () |
|
static void | SetDiagMsg (const char *format,...) |
| Record a formatted diagnostic message.
|
|
static const char * | GetDiagMsg () |
|
static void | SetDiagMsgCB (DiagMsgCB_T cb) |
|
static DiagMsgCB_T | GetDiagMsgCB () |
|
static void | SetDiagMsgFilePtr (FILE *fp) |
|
static bool | EnableErrMsg (bool enable) |
|
static bool | GetEnableErrMsg () |
|
Misc. utilities for operating on geographic coordinates.
- Author
- John Clyne
Definition at line 20 of file GeoUtil.h.
◆ ExtractBoundary() [1/2]
static void VAPoR::GeoUtil::ExtractBoundary |
( |
const double * |
a, |
|
|
int |
nx, |
|
|
int |
ny, |
|
|
double * |
bdry |
|
) |
| |
|
static |
◆ ExtractBoundary() [2/2]
static void VAPoR::GeoUtil::ExtractBoundary |
( |
const float * |
a, |
|
|
int |
nx, |
|
|
int |
ny, |
|
|
float * |
bdry |
|
) |
| |
|
static |
Extract boundary points from a 2D grid
This method walks a 2D array, a
, in counter-clockwise order, visiting each boundary grid point exactly once, copying the value to the array bdry
. A total of 2*nx + 2*ny - 4 grid points are copied.
- Parameters
-
[in] | a | An 2D array dimensioned nx by ny |
[in] | nx | dimension of fastest moving coordinate |
[in] | ny | dimension of slowest moving coordinate |
| [output] | bdry Output array containing the boundary values of a . The number of elements copied to bdry is 2 * nx + 2 * ny - 4. |
◆ ShiftLon() [1/3]
static void VAPoR::GeoUtil::ShiftLon |
( |
float * |
first, |
|
|
float * |
last, |
|
|
double |
bound = 360.0 |
|
) |
| |
|
static |
◆ ShiftLon() [2/3]
static void VAPoR::GeoUtil::ShiftLon |
( |
vector< double >::iterator |
first, |
|
|
vector< double >::iterator |
last, |
|
|
double |
bound = 360.0 |
|
) |
| |
|
static |
◆ ShiftLon() [3/3]
static void VAPoR::GeoUtil::ShiftLon |
( |
vector< float >::iterator |
first, |
|
|
vector< float >::iterator |
last, |
|
|
double |
bound = 360.0 |
|
) |
| |
|
static |
Shift a container of longitude values so that all values are in the range [-bound .. bound]
◆ UnwrapLongitude() [1/3]
static void VAPoR::GeoUtil::UnwrapLongitude |
( |
float * |
first, |
|
|
float * |
last |
|
) |
| |
|
static |
◆ UnwrapLongitude() [2/3]
static void VAPoR::GeoUtil::UnwrapLongitude |
( |
vector< double >::iterator |
first, |
|
|
vector< double >::iterator |
last |
|
) |
| |
|
static |
◆ UnwrapLongitude() [3/3]
static void VAPoR::GeoUtil::UnwrapLongitude |
( |
vector< float >::iterator |
first, |
|
|
vector< float >::iterator |
last |
|
) |
| |
|
static |
Unwrap any wrapped longitued values
Iteratively adds 360.0 to each value in a container that is less than the first value until the new value is greater than the first.
The documentation for this class was generated from the following file: