WXP C++ Library Version 6.74.9
|
This decodes RCM radar data files. More...
#include "../include/RcmDecode.h"
Public Member Functions | |
RcmDecode () | |
int | init () |
int | setParam (const char *str) |
int | setInput (const char *conv) |
int | setOutput (const char *conv) |
int | setDate (Date &rdate) |
int | decode (Date &date) |
int | decode (const char *filename) |
int | filterOverlap (RcmData &data) |
int | setup () |
int | decode () |
This decodes RCM radar data files.
RcmDecode::RcmDecode | ( | ) |
int RcmDecode::decode | ( | ) |
Decodes the data from already setup parameters
References WXP::Wxp::checkMessage(), decode(), WXP::Filename::getDate(), WXP::RadMask::getGrids(), WXP::Date::getMinute(), WXP::Filename::getName(), WXP::RadMask::getWinter(), WXP::EarthPoint::lat, WXP::EarthPoint::lon, WXP::RcmHash::next(), WXP::Wxp::outMessage(), WXP::Wxp::outWarning(), WXP::RcmData::print(), WXP::DateRange::set(), WXP::GridPoint::set(), WXP::Filename::setFile(), WXP::RadMask::setForeHour(), WXP::Date::setMinute(), setup(), and WXP::FileAttr::WRITE.
Referenced by decode().
int RcmDecode::decode | ( | const char * | filename | ) |
Decodes a specific file
filename | The input filename |
References WXP::Calc::dist(), filterOverlap(), WXP::RcmHash::get(), WXP::Wxp::isDebug(), WXP::EarthPoint::lat, WXP::EarthPoint::lon, WXP::Const::MISS, WXP::Wxp::outDebug(), WXP::Wxp::outMessage(), WXP::Wxp::outWarning(), WXP::RcmData::print(), and WXP::RcmHash::put().
int RcmDecode::decode | ( | Date & | date | ) |
Decodes data based on date
date | The file date |
References WXP::Filename::getName(), WXP::Wxp::outWarning(), and WXP::Filename::setDate().
int RcmDecode::filterOverlap | ( | RcmData & | data | ) |
Filters overlapping storm data. First it filters data within the report and then checks the data in the hash for overlap.
data | The RCM data |
References WXP::Calc::dist(), WXP::Const::MISS, WXP::RcmHash::next(), WXP::Wxp::outDebug(), and WXP::EarthPoint::set().
Referenced by decode().
int RcmDecode::init | ( | ) |
Initializes data
References WXP::Const::MISS, setInput(), setOutput(), and setParam().
Referenced by RcmDecode().
int RcmDecode::setDate | ( | Date & | rdate | ) |
Sets the date to decode
rdate | The date |
int RcmDecode::setInput | ( | const char * | conv | ) |
Sets the input file name convention
conv | The name convention |
References WXP::Filename::setNameConv().
Referenced by init().
int RcmDecode::setOutput | ( | const char * | conv | ) |
Sets the output file name convention
conv | The name convention |
References WXP::Filename::setNameConv().
Referenced by init().
int RcmDecode::setParam | ( | const char * | str | ) |
Sets parameters
str | String containing parameters |
References WXP::Strings::equal(), WXP::Strings::getInt(), and WXP::Strings::getNum().
Referenced by init().
int RcmDecode::setup | ( | ) |
Sets up the hash from the city database file
References WXP::FileTool::addPath(), WXP::StrLib::copy(), WXP::String::get(), WXP::Wxp::getDatabasePath(), WXP::CityData::getId(), WXP::CityData::getLat(), WXP::CityData::getLon(), WXP::CityData::getPrior(), WXP::CityData::getWmo(), WXP::Image::init(), WXP::RcmImage::init(), WXP::CityFile::isOpen(), WXP::RcmHash::put(), and WXP::CityFile::read().
Referenced by decode().