nidas v1.2.3
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::WindRotator ( )

Member Function Documentation

◆ getAngleDegrees()

double WindRotator::getAngleDegrees ( ) const

◆ rotate()

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

◆ setAngleDegrees()

void WindRotator::setAngleDegrees ( double val)

Member Data Documentation

◆ _angle

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

Referenced by getAngleDegrees(), and setAngleDegrees().

◆ _cosAngle

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

Referenced by rotate(), and setAngleDegrees().

◆ _sinAngle

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

Referenced by rotate(), and setAngleDegrees().


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