WXP C++ Library Version 6.74.9
|
This class reads in Kavouras radar mosaic data files. More...
#include "../include/KavradFile.h"
Public Member Functions | |
KavradFile () | |
int | open (const char *name) |
bool | isOpen () |
int | rewind () |
int | close () |
int | readHeader () |
int | readPacket (KavradPacket &packet) |
int | read (Image &image) |
This class reads in Kavouras radar mosaic data files.
KavradFile::KavradFile | ( | ) |
Contructor. Initializes data
int KavradFile::close | ( | ) |
Closes the file
References WXP::File::close().
bool KavradFile::isOpen | ( | ) |
int KavradFile::open | ( | const char * | filename | ) |
Opens a Kavouras radar file
filename | File to open |
References WXP::File::isOpen(), WXP::File::open(), and WXP::FileAttr::READ.
Referenced by WXP::RadPlot::draw().
int KavradFile::read | ( | Image & | image | ) |
Reads in mosaic data and puts into Image object
image | Image to save data to |
References WXP::Image::allocData(), WXP::DateTool::createLabel(), WXP::Image::init(), WXP::Wxp::outDebug(), readHeader(), readPacket(), WXP::KavradPacket::run, WXP::Image::set(), WXP::Image::setPixel(), and WXP::KavradPacket::val.
Referenced by WXP::RadPlot::draw().
int KavradFile::readHeader | ( | ) |
Reads in and decodes the header information
References WXP::DomainVal::clat, WXP::DomainVal::clon, WXP::DateVal::day, WXP::DomainVal::dx, WXP::DomainVal::dy, WXP::DateVal::hour, WXP::Domain::init(), WXP::Domain::LATLON, WXP::DateVal::min, WXP::DateVal::month, WXP::DomainVal::nx, WXP::DomainVal::ny, WXP::DomainVal::proj, WXP::File::read(), WXP::DateVal::sec, WXP::File::seek(), WXP::Date::set(), WXP::Domain::set(), and WXP::DateVal::year.
Referenced by read().
int KavradFile::readPacket | ( | KavradPacket & | packet | ) |
Reads in a run-length packet
packet | Return packet info |
References WXP::File::endFile(), WXP::File::read(), WXP::KavradPacket::run, and WXP::KavradPacket::val.
Referenced by read().
int KavradFile::rewind | ( | ) |
Rewinds the file
References WXP::File::rewind().