WXP C++ Library Version 6.74.9
|
This class converts and merges NIDS data into an Image. More...
#include "../include/NidsImage.h"
Public Types | |
enum | Type { BREF , RALA } |
enum | ScanType { RADIAL , RASTOR } |
Public Member Functions | |
NidsImage () | |
NidsImage (const char *str) | |
int | init () |
int | setParam (const char *str) |
int | setClutterRad (int crad) |
int | setRamp (int cut, int len) |
int | getRampCut () |
int | getRampLen () |
int | setThres (FloatArray &array) |
int | setThres (const char *str) |
int | setClearAirUse (int val) |
int | getClearAirUse () |
int | getMode () |
int | getIndex (float val) |
int | setup (Image &image) |
int | readSite (Filename &filename) |
int | addSite (Image &image) |
int | addSite (Filename &filename, Image &image) |
int | setImage (Filename &filename, Image &image) |
int | applyMask (Image &image, Grid &mask) |
int | print () |
int | printSite () |
This class converts and merges NIDS data into an Image.
NidsImage::NidsImage | ( | ) |
Constructor
References init().
NidsImage::NidsImage | ( | const char * | str | ) |
Reads in and adds the site to the image
filename | The input NIDS image |
image | The output image |
References addSite(), and readSite().
int NidsImage::addSite | ( | Image & | image | ) |
Adds the site data from the readSite call to the image
image | The image |
References WXP::Domain::adjustDir(), WXP::Image::allocData(), WXP::DateTool::createLabel(), WXP::Const::DRC, WXP::Image::getDx(), getIndex(), WXP::Domain::getNx(), WXP::Domain::getNy(), WXP::Image::getPixel(), WXP::Wxp::isDebug(), WXP::NidsInfo::lat, WXP::NidsInfo::lon, WXP::Const::MISS, WXP::NidsData::mode, WXP::Domain::print(), WXP::GridPoint::set(), WXP::EarthPoint::set(), WXP::Point::set(), WXP::Image::set(), WXP::Image::setPixel(), WXP::Domain::tran(), WXP::Image::tran(), WXP::NidsData::type, WXP::Point::x, and WXP::Point::y.
Referenced by addSite().
Applies the winter mask grid
image | The input image |
mask | The winter mask (0=rain, 1=freezing rain, 2=snow) |
References WXP::Image::getVal(), WXP::Grid::getValue(), WXP::GridPoint::set(), WXP::Image::setPixel(), WXP::Grid::tran(), and WXP::Image::tran().
int NidsImage::getIndex | ( | float | val | ) |
Returns pixel index based on NIDS value
val | Value |
Referenced by addSite(), and setImage().
int NidsImage::getMode | ( | ) |
int NidsImage::init | ( | ) |
Initializes the class
References WXP::Const::MISS, setParam(), and setThres().
Referenced by NidsImage(), and NidsImage().
int NidsImage::print | ( | ) |
Prints the object parameters
int NidsImage::printSite | ( | ) |
Prints the current site information
References WXP::NidsInfo::print().
int NidsImage::readSite | ( | Filename & | filename | ) |
Reads in NIDS data from a specific file and stores it for processing
filename | File to read in and store |
References WXP::NidsInfo::code, WXP::Filename::getName(), WXP::NidsFile::isOpen(), WXP::NidsInfo::mode, WXP::Wxp::outMessage(), and WXP::Wxp::outWarning().
Referenced by addSite().
int NidsImage::setClearAirUse | ( | int | val | ) |
Specifies whether a site in clear air mode is to be added to the image
val | 1=use clear air sites |
Converts a single NIDS product to an image
filename | The NIDS file as input |
image | The output image |
References WXP::Domain::adjustDir(), WXP::Image::allocData(), WXP::NidsRadial::ang0, WXP::NidsInfo::code, WXP::DateTool::createLabel(), WXP::Const::DRC, WXP::Image::getDx(), getIndex(), WXP::Filename::getName(), WXP::Domain::getNx(), WXP::Domain::getNy(), WXP::Image::getPixel(), WXP::NidsFile::isOpen(), WXP::NidsInfo::lat, WXP::NidsInfo::lon, WXP::Const::MISS, WXP::NidsInfo::mode, WXP::Wxp::outMessage(), WXP::Wxp::outWarning(), WXP::NidsFile::readRadial(), WXP::NidsFile::readRun(), WXP::NidsRun::run, WXP::Domain::set(), WXP::GridPoint::set(), WXP::EarthPoint::set(), WXP::Point::set(), WXP::Image::set(), WXP::Image::setPixel(), WXP::Domain::tran(), WXP::Image::tran(), WXP::NidsRun::val, WXP::Point::x, and WXP::Point::y.
int NidsImage::setParam | ( | const char * | str | ) |
Specifies parameters
str | Parameters |
References WXP::Strings::getInt(), WXP::Strings::getNum(), WXP::Strings::iequal(), and WXP::Strings::scanf().
Referenced by init(), and NidsImage().
int NidsImage::setRamp | ( | int | cut, |
int | len | ||
) |
Sets up ramp values. This is a linear ramp to remove values that are less than the ramp.
cut | Maximum cutoff value which is at radar site |
len | Distance from site when cutoff becomes 0 |
int NidsImage::setThres | ( | const char * | str | ) |
Sets the threshold values for the image
str | The threshold values |
References WXP::FloatArray::set(), and setThres().
int NidsImage::setThres | ( | FloatArray & | array | ) |
Sets the threshold values for the image
str | The threshold values |
References WXP::FloatArray::get(), WXP::FloatArray::getNum(), WXP::Wxp::outDebug(), and WXP::Wxp::outWarning().
Referenced by init(), and setThres().