nidas  v1.2-1520
Public Member Functions | Private Attributes | List of all members
nidas::dynld::isff::WindRotator Class Reference

Rotate a (U,V) 2D wind vector by an angle. More...

#include <WindRotator.h>

Public Member Functions

 WindRotator ()
 
double getAngleDegrees () const
 
void setAngleDegrees (double val)
 
void rotate (float *up, float *vp) const
 

Private Attributes

double _angle
 
double _sinAngle
 
double _cosAngle
 

Detailed Description

Rotate a (U,V) 2D wind vector by an angle.

Typically used to correct winds for anemometer orientation, rotating U,V from instrument coordinates to geographic coordinates, where +U is wind to the east, and +V is to the north.

Constructor & Destructor Documentation

WindRotator::WindRotator ( )

Member Function Documentation

double WindRotator::getAngleDegrees ( ) const
void WindRotator::rotate ( float *  up,
float *  vp 
) const

References _cosAngle, and _sinAngle.

void WindRotator::setAngleDegrees ( double  val)

Member Data Documentation

double nidas::dynld::isff::WindRotator::_angle
private

Referenced by getAngleDegrees(), and setAngleDegrees().

double nidas::dynld::isff::WindRotator::_cosAngle
private

Referenced by rotate(), and setAngleDegrees().

double nidas::dynld::isff::WindRotator::_sinAngle
private

Referenced by rotate(), and setAngleDegrees().


The documentation for this class was generated from the following files: