WXP C++ Library Version 6.74.9
|
This class manages RCM (Radar Coded Messages) data files. More...
#include "../include/RcmFile.h"
Public Types | |
enum | Type { UNK , RAW , WXP , NETCDF } |
Public Member Functions | |
RcmFile () | |
RcmFile (const char *filename) | |
RcmFile (Filename &filename) | |
~RcmFile () | |
int | init () |
int | open (const char *filename, int raccess, int rtype) |
int | open (const char *filename) |
int | open (Filename &filename, int raccess, int rtype) |
int | open (Filename &filename) |
int | close () |
bool | isOpen () |
int | setDate (Date &rdate) |
int | getDate (Date &rdate) |
int | decode (RcmRawData &raw, RcmData &data) |
int | read (Image &image) |
int | read (RcmRawData &data) |
int | read (RcmData &data) |
int | write (Image &image) |
int | write (RcmData &data) |
This class manages RCM (Radar Coded Messages) data files.
RcmFile::RcmFile | ( | ) |
Constructor. Initializes class
RcmFile::RcmFile | ( | const char * | filename | ) |
Constructor. Initializes and opens file
filename | Opens this file |
RcmFile::~RcmFile | ( | ) |
Destructor. Closes file
References close().
int RcmFile::close | ( | ) |
int RcmFile::decode | ( | RcmRawData & | raw, |
RcmData & | data | ||
) |
Decodes the RCM data
raw | The raw RCM product |
data | The output decoded data |
References WXP::RcmRawData::data, WXP::DateVal::day, WXP::Convert::FTtoM(), WXP::Scanp::getChar(), WXP::DateVal::hour, WXP::RcmRawData::id, WXP::Scanp::inc(), WXP::DateVal::init(), WXP::RcmData::init(), WXP::RcmRawData::len, WXP::DateVal::min, WXP::DateVal::month, WXP::Wxp::outDebug(), WXP::Scanp::scan(), WXP::Date::set(), WXP::Scanp::set(), WXP::Scanp::string(), and WXP::DateVal::year.
Referenced by WXP::RcmPlot::draw(), and read().
int RcmFile::open | ( | const char * | filename | ) |
int RcmFile::read | ( | RcmData & | data | ) |
int RcmFile::read | ( | RcmRawData & | data | ) |
Reads in the raw RCM product and puts it into a buffer
data | The output raw data |
References WXP::RcmRawData::data, WXP::File::endFile(), WXP::File::getLine(), WXP::RcmRawData::id, WXP::StrLib::iequal(), WXP::RcmRawData::len, and WXP::StrLib::trimWS().