WXP C++ Library Version 6.74.9
|
This class sets up various masks for radar data based on model data. More...
#include "../include/RadMask.h"
Public Member Functions | |
RadMask () | |
~RadMask () | |
int | init () |
int | setModel (const char *mod) |
int | setForeHour (int val) |
int | useHdrFile (bool val) |
int | getDate (Date &rdate) |
int | setDomain (DomainVal &dv) |
int | setDomain (Domain &dom) |
int | getGrids (Filename &filename) |
int | getGrids (Date &date) |
int | getGrids (const char *file) |
int | getGrids () |
float | getTSfc (EarthPoint &ept) |
float | getRSfc (EarthPoint &ept) |
float | getT0 (EarthPoint &ept) |
float | getT60 (EarthPoint &ept) |
float | getT150 (EarthPoint &ept) |
float | getR150 (EarthPoint &ept) |
float | getTSfc (int i, int j) |
float | getRSfc (int i, int j) |
float | getT0 (int i, int j) |
float | getT60 (int i, int j) |
float | getT150 (int i, int j) |
float | getR150 (int i, int j) |
int | getWinterFlag (float tsfc, float t60, float t150) |
int | getWinterFlag (int i, int j) |
int | getWinterFlag (EarthPoint &ept) |
int | getWinter (Grid &mask_grid) |
int | getSiteFilter (EarthPoint &ept) |
int | print () |
This class sets up various masks for radar data based on model data.
RadMask::RadMask | ( | ) |
Constructor. Sets up hash table.
References init().
RadMask::~RadMask | ( | ) |
Destructor
int RadMask::getGrids | ( | ) |
Gets the model data for latest available model run
References getGrids(), and WXP::ModelSpec::getName().
Referenced by getGrids(), getGrids(), getGrids(), and getWinter().
int RadMask::getGrids | ( | const char * | file | ) |
Gets the model data
file | The file name |
References getGrids(), and WXP::ModelSpec::getName().
int RadMask::getGrids | ( | Date & | date | ) |
Gets the model data for a specific date. Uses model specification to determine filename.
date | The GRIB file date |
References getGrids(), WXP::Filename::getName(), WXP::ModelSpec::getName(), WXP::Wxp::outMessage(), WXP::Filename::setFile(), and WXP::Filename::setNameConv().
int RadMask::getGrids | ( | Filename & | filename | ) |
Gets the model data
filename | The GRIB filename |
References WXP::Filename::getDate(), WXP::Date::getHour(), WXP::Filename::getName(), WXP::Date::getSeconds(), WXP::Grid::getSpec(), WXP::Wxp::isDebug(), WXP::GribFile::isOpen(), WXP::Const::MISS, WXP::Wxp::outDebug(), WXP::Wxp::outMessage(), WXP::GribFile::read(), WXP::GridMath::remap(), WXP::GridMath::units(), and WXP::GribFile::useHdrFile().
Referenced by WXP::RcmDecode::decode().
|
inline |
Returns 150mb AG humidity for a location
References WXP::Grid::getValue().
|
inline |
Returns 150mb AG humidity for a gridpoint
References WXP::Grid::getValue().
|
inline |
Returns surface humidity for a location
References WXP::Grid::getValue().
|
inline |
Returns surface humidity for a gridpoint
References WXP::Grid::getValue().
int RadMask::getSiteFilter | ( | EarthPoint & | ept | ) |
Computes level of filtering to do to eliminate AP
ept | Location to compute |
References WXP::Convert::CtoK(), WXP::Calc::dewTemp(), WXP::Grid::getValue(), WXP::Convert::KtoC(), WXP::EarthPoint::lat, WXP::EarthPoint::lon, and WXP::Wxp::outDebug().
|
inline |
Returns 0mb AG temperature for a location
References WXP::Grid::getValue().
|
inline |
Returns 0mb AG temperature for a gridpoint
References WXP::Grid::getValue().
|
inline |
Returns 150mb AG temperature for a location
References WXP::Grid::getValue().
|
inline |
Returns 150mb AG temperature for a gridpoint
References WXP::Grid::getValue().
|
inline |
Returns 60mb AG temperature for a location
References WXP::Grid::getValue().
|
inline |
Returns 60mb AG temperature for a gridpoint
References WXP::Grid::getValue().
|
inline |
Returns surface temperature for a location
References WXP::Grid::getValue().
|
inline |
Returns surface temperature for a gridpoint
References WXP::Grid::getValue().
int RadMask::getWinter | ( | Grid & | mgrid | ) |
Output winter mask
mgrid | Mask grid |
References WXP::Grid::allocData(), getGrids(), WXP::Grid::getNx(), WXP::Grid::getNy(), getWinterFlag(), WXP::Grid::setInfo(), and WXP::Grid::setValue().
Referenced by WXP::RcmDecode::decode().
int RadMask::getWinterFlag | ( | EarthPoint & | ept | ) |
Computes the winter mask flag
ept | The location |
References WXP::Grid::getValue(), and getWinterFlag().
int RadMask::getWinterFlag | ( | float | tsfc, |
float | t60, | ||
float | t150 | ||
) |
Computes the winter mask flag
tsfc | Surface temperature |
t60 | Temperature 60 mb above surface |
t150 | Temperature 150 mb above surface |
References WXP::Const::MISS.
Referenced by getWinter(), getWinterFlag(), and getWinterFlag().
int RadMask::getWinterFlag | ( | int | i, |
int | j | ||
) |
Computes the winter mask flag
i | I grid location |
j | J grid location |
References WXP::Grid::getValue(), and getWinterFlag().
int RadMask::init | ( | ) |
Initializes the object
References WXP::StrLib::copy(), WXP::DomainTool::decode(), WXP::Const::MISS, and WXP::Domain::set().
Referenced by RadMask().
int RadMask::print | ( | ) |
Prints the model grids
References WXP::Grid::print().
int RadMask::setDomain | ( | Domain & | dom | ) |
Sets the domain that the model data is fit to. It is the domain of the mask grid
dom | Domain values |
int RadMask::setDomain | ( | DomainVal & | dv | ) |
Sets the domain that the model data is fit to. It is the domain of the mask grid
dv | Domain values |
References WXP::Domain::set().
|
inline |
Sets the forecast hour used to read in grids
Referenced by WXP::RcmDecode::decode().
int RadMask::setModel | ( | const char * | str | ) |
|
inline |
Sets the forecast hour used to read in grids