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

This class merges MDR data into an Image. More...

#include "../include/MdrImage.h"

Public Member Functions

 MdrImage ()
 
int init ()
 
int setParam (const char *str)
 
int addSite (Image &image, MdrData &data)
 
int readFile (Filename &filename, Image &image)
 

Detailed Description

This class merges MDR data into an Image.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ MdrImage()

MdrImage::MdrImage ( )

Constructor

References init().

Member Function Documentation

◆ addSite()

int MdrImage::addSite ( Image image,
MdrData data 
)

Adds a site to the image

Parameters
imageThe MDR image
dataThe MDR data to incorporate into the image

References WXP::Image::allocData(), WXP::Image::getPixel(), WXP::Const::MISS, WXP::Domain::set(), WXP::Image::set(), and WXP::Image::setPixel().

Referenced by readFile().

◆ init()

int MdrImage::init ( )

Initializes the class

Referenced by MdrImage().

◆ readFile()

int MdrImage::readFile ( Filename filename,
Image image 
)

Reads MDR data and incorporates it into an image

Parameters
filenameThe filename
Return values
imageThe output image

References addSite(), WXP::DateTool::createLabel(), WXP::CityHash::get(), WXP::Filename::getDate(), WXP::CityHashData::getLat(), WXP::CityHashData::getLon(), WXP::DateRange::set(), WXP::MdrData::setLoc(), WXP::Date::setMinute(), and WXP::DateRange::valid().

◆ setParam()

int MdrImage::setParam ( const char *  str)

Sets the conversion parameters

Parameters
strThe parameters

References WXP::Strings::getNum().


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