MeteoIODoc  MeteoIODoc-2.9.0
mio::ProcTransformWindVector Class Reference

Detailed Description

This filter projects wind direction, and/or wind speed components, from WGS84 to a PROJ4 supported coordinate system, defined by an EPSG code (requires PROJ4).

The filter assumes the wind direction and/or the U and V wind speed components are defined in WGS84 (i.e, north/south is parallel to longitude, and east/west is parallel to latitude). After transformation to a PROJ4 supported coordinate system defined by an EPSG code, the wind direction is defined such that north/south is parallel to northing, and east/west is parallel to easting. The following arguments are supported:

  • COORDPARAM: provides the target EPSG code for transformation
Note
  • If no COORDPARAM is provided, it is tried to read COORDPARAM from the [Input] section.
  • If both DW and wind speed components are present and defined, all three variables will be recalculated, even when the filter is only set to act on wind direction or wind speed components. This ensures consistency.
  • When applying the filter on wind speed components, the filter needs to be specified for only one component (the other one is automatically recalculated, to maintain consistency).
  • Wind speed components should be called U, VW_U or WIND_U for east/west and V, VW_V or WIND_V for north/south, respectively.
  • At the North and South Pole, the transform is undefined. In the limit towards the pole (|latitude| > 89.999), the transform becomes inaccurate.
Author
Nander Wever
Date
2020-06-10

Example using wind direction:

DW::filter1 = TRANSFORMWINDVECTOR
DW::arg1::COORDPARAM = 3031 ; Antarctic Polar Stereographic

Example using wind speed components:

U::filter1 = TRANSFORMWINDVECTOR
U::arg1::COORDPARAM = 21781 ; CH1903 / LV03 -- Swiss CH1903 / LV03

#include <ProcTransformWindVector.h>

Public Member Functions

 ProcTransformWindVector (const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &name, const Config &i_cfg)
 
virtual void process (const unsigned int &param, const std::vector< MeteoData > &ivec, std::vector< MeteoData > &ovec)
 
- Public Member Functions inherited from mio::ProcessingBlock
virtual ~ProcessingBlock ()
 
virtual void process (Date &dateStart, Date &dateEnd)
 
std::string getName () const
 
const ProcessingPropertiesgetProperties () const
 
const std::string toString () const
 
bool skipStation (const std::string &station_id) const
 
bool noStationsRestrictions () const
 

Additional Inherited Members

- Static Public Member Functions inherited from mio::ProcessingBlock
static void readCorrections (const std::string &filter, const std::string &filename, std::vector< double > &X, std::vector< double > &Y)
 
static void readCorrections (const std::string &filter, const std::string &filename, std::vector< double > &X, std::vector< double > &Y1, std::vector< double > &Y2)
 
static std::vector< double > readCorrections (const std::string &filter, const std::string &filename, const size_t &col_idx, const char &c_type, const double &init)
 
static std::vector< offset_specreadCorrections (const std::string &filter, const std::string &filename, const double &TZ, const size_t &col_idx=2)
 
static std::map< std::string, std::vector< dates_range > > readDates (const std::string &filter, const std::string &filename, const double &TZ)
 
static std::set< std::string > initStationSet (const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &keyword)
 
- Protected Member Functions inherited from mio::ProcessingBlock
 ProcessingBlock (const std::vector< std::pair< std::string, std::string > > &vecArgs, const std::string &name)
 protected constructor only to be called by children More...
 
- Static Protected Member Functions inherited from mio::ProcessingBlock
static void extract_dbl_vector (const unsigned int &param, const std::vector< MeteoData > &ivec, std::vector< double > &ovec)
 
static void extract_dbl_vector (const unsigned int &param, const std::vector< const MeteoData *> &ivec, std::vector< double > &ovec)
 
- Protected Attributes inherited from mio::ProcessingBlock
const std::set< std::string > excluded_stations
 
const std::set< std::string > kept_stations
 
ProcessingProperties properties
 
const std::string block_name
 
- Static Protected Attributes inherited from mio::ProcessingBlock
static const double soil_albedo = .23
 
static const double snow_albedo = .85
 
static const double snow_thresh = .1
 parametrize the albedo from HS More...
 

Constructor & Destructor Documentation

◆ ProcTransformWindVector()

mio::ProcTransformWindVector::ProcTransformWindVector ( const std::vector< std::pair< std::string, std::string > > &  vecArgs,
const std::string &  name,
const Config i_cfg 
)

Member Function Documentation

◆ process()

void mio::ProcTransformWindVector::process ( const unsigned int &  param,
const std::vector< MeteoData > &  ivec,
std::vector< MeteoData > &  ovec 
)
virtual

Implements mio::ProcessingBlock.


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