WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
WXP::NidsImage Class Reference

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 ()
 

Detailed Description

This class converts and merges NIDS data into an Image.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ NidsImage() [1/2]

NidsImage::NidsImage ( )

Constructor

References init().

◆ NidsImage() [2/2]

NidsImage::NidsImage ( const char *  str)

Constructor. Sets up parameters

Parameters
strParameters

References init(), and setParam().

Member Function Documentation

◆ addSite() [1/2]

int NidsImage::addSite ( Filename filename,
Image image 
)

Reads in and adds the site to the image

Parameters
filenameThe input NIDS image
imageThe output image

References addSite(), and readSite().

◆ addSite() [2/2]

int NidsImage::addSite ( Image image)

◆ applyMask()

int NidsImage::applyMask ( Image image,
Grid mask 
)

Applies the winter mask grid

Parameters
imageThe input image
maskThe 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().

◆ getIndex()

int NidsImage::getIndex ( float  val)

Returns pixel index based on NIDS value

Parameters
valValue
Returns
Pixel index

Referenced by addSite(), and setImage().

◆ getMode()

int NidsImage::getMode ( )

Returns the mode of the current site

Returns
The radar mode

References WXP::NidsInfo::mode.

◆ init()

int NidsImage::init ( )

Initializes the class

References WXP::Const::MISS, setParam(), and setThres().

Referenced by NidsImage().

◆ print()

int NidsImage::print ( )

Prints the object parameters

◆ printSite()

int NidsImage::printSite ( )

Prints the current site information

References WXP::NidsInfo::print().

◆ readSite()

int NidsImage::readSite ( Filename filename)

Reads in NIDS data from a specific file and stores it for processing

Parameters
filenameFile 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().

◆ setClearAirUse()

int NidsImage::setClearAirUse ( int  val)

Specifies whether a site in clear air mode is to be added to the image

Parameters
val1=use clear air sites

◆ setImage()

int NidsImage::setImage ( Filename filename,
Image image 
)

◆ setParam()

int NidsImage::setParam ( const char *  str)

Specifies parameters

Parameters
strParameters

References WXP::Strings::getInt(), WXP::Strings::getNum(), WXP::Strings::iequal(), and WXP::Strings::scanf().

Referenced by init(), and NidsImage().

◆ setRamp()

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.

Parameters
cutMaximum cutoff value which is at radar site
lenDistance from site when cutoff becomes 0

◆ setThres() [1/2]

int NidsImage::setThres ( const char *  str)

Sets the threshold values for the image

Parameters
strThe threshold values

References WXP::FloatArray::set(), and setThres().

◆ setThres() [2/2]

int NidsImage::setThres ( FloatArray array)

Sets the threshold values for the image

Parameters
strThe threshold values

References WXP::FloatArray::get(), WXP::FloatArray::getNum(), WXP::Wxp::outDebug(), and WXP::Wxp::outWarning().

Referenced by init(), and setThres().


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