VAPOR3 3.9.4
Static Public Member Functions | List of all members
VAPoR::GeoUtil Class Reference

Misc. utilities for operating on geographic coordinates. More...

#include <GeoUtil.h>

Inheritance diagram for VAPoR::GeoUtil:
Wasp::MyBase

Static Public Member Functions

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 Public Member Functions inherited from Wasp::MyBase
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 ()
 

Additional Inherited Members

- Public Types inherited from Wasp::MyBase
typedef void(* ErrMsgCB_T) (const char *msg, int err_code)
 
typedef void(* DiagMsgCB_T) (const char *msg)
 
- Public Member Functions inherited from Wasp::MyBase
 MyBase ()
 
const string & getClassName () const
 
- Static Public Attributes inherited from Wasp::MyBase
static char * ErrMsg
 
static int ErrCode
 
static int ErrMsgSize
 
static FILE * ErrMsgFilePtr
 
static ErrMsgCB_T ErrMsgCB
 
static char * DiagMsg
 
static int DiagMsgSize
 
static FILE * DiagMsgFilePtr
 
static DiagMsgCB_T DiagMsgCB
 
static bool Enabled
 
- Protected Member Functions inherited from Wasp::MyBase
void SetClassName (const string &name)
 

Detailed Description

Misc. utilities for operating on geographic coordinates.

Author
John Clyne

Definition at line 20 of file GeoUtil.h.

Member Function Documentation

◆ 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]aAn 2D array dimensioned nx by ny
[in]nxdimension of fastest moving coordinate
[in]nydimension 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: