WXP C++ Library Version 6.74.9
|
This decodes upper air data files. More...
#include "../include/UpaDecode.h"
Public Member Functions | |
UpaDecode () | |
int | init () |
int | setParam (const char *str) |
int | setInput (const char *conv) |
int | setOutput (const char *conv) |
int | setHour (const char *str) |
int | setDate (Date &rdate) |
int | openOutput () |
int | decode (Date &date) |
int | decode (const char *filename) |
int | decode () |
This decodes upper air data files.
UpaDecode::UpaDecode | ( | ) |
Constructor - initializes data
References init().
int UpaDecode::decode | ( | ) |
Decodes data based on preset parameters
References WXP::Wxp::checkMessage(), decode(), WXP::Filename::getDate(), WXP::Filename::getName(), WXP::Filename::getNumFiles(), WXP::Wxp::outMessage(), WXP::Date::print(), WXP::Filename::setBaseDate(), WXP::Filename::setFile(), WXP::Filename::setNumFiles(), and WXP::UpaFile::write().
Referenced by decode().
int UpaDecode::decode | ( | const char * | filename | ) |
Decodes the file
filename | The file name |
References WXP::UpaTool::decode(), WXP::UpaRawinHash::get(), WXP::UpaRawinData::init(), WXP::Wxp::isDebug(), WXP::UpaWmoFile::open(), WXP::Wxp::outMessage(), WXP::Wxp::outWarning(), WXP::Date::print(), WXP::UpaRawinHash::put(), WXP::UpaWmoFile::read(), and WXP::DateRange::valid().
int UpaDecode::decode | ( | Date & | date | ) |
Decodes data based on date
date | The decoding date |
References WXP::Filename::getName(), WXP::Wxp::outWarning(), and WXP::Filename::setDate().
int UpaDecode::init | ( | ) |
Initializes data
References WXP::StrLib::equal(), WXP::DateRange::set(), setHour(), setInput(), setOutput(), and setParam().
Referenced by UpaDecode().
int UpaDecode::setDate | ( | Date & | rdate | ) |
Sets the decode date
rdate | The date |
int UpaDecode::setHour | ( | const char * | str | ) |
Sets the decoding hour (used with current setting)
str | The decoding hour |
References WXP::Filename::setFixDate().
Referenced by init().
int UpaDecode::setInput | ( | const char * | conv | ) |
Sets the input file name convention
conv | The name convention |
References WXP::Filename::setNameConv().
Referenced by init().
int UpaDecode::setOutput | ( | const char * | conv | ) |
Sets the output file name convention
conv | The name convention |
References WXP::Filename::setNameConv().
Referenced by init().
int UpaDecode::setParam | ( | const char * | str | ) |
Sets decoding parameters
str | The parameters string |
References WXP::Strings::equal(), WXP::Strings::getNum(), WXP::Strings::scanf(), and WXP::DateRange::set().
Referenced by init().