WXP C++ Library Version 6.74.9
|
This class reads in WSI NOWRad radar mosaic files. More...
#include "../include/NowradFile.h"
Public Member Functions | |
NowradFile () | |
int | open (const char *name) |
bool | isOpen () |
int | rewind () |
int | close () |
int | readHeader () |
int | readLine () |
int | readPacket (NowradPacket &packet) |
int | read (Image &image) |
This class reads in WSI NOWRad radar mosaic files.
NowradFile::NowradFile | ( | ) |
Constructor. Initializes data.
int NowradFile::close | ( | ) |
Closes the file
References WXP::File::close().
bool NowradFile::isOpen | ( | ) |
int NowradFile::open | ( | const char * | filename | ) |
Opens a Nowrad file
filename | File to open |
References WXP::File::isOpen(), WXP::File::open(), and WXP::FileAttr::READ.
Referenced by WXP::RadPlot::draw().
int NowradFile::read | ( | Image & | image | ) |
Reads in Nowrad data into Image object
image | Image to put data into |
References WXP::Image::allocData(), WXP::DateTool::createLabel(), WXP::Image::init(), readHeader(), readLine(), readPacket(), WXP::NowradPacket::run, WXP::Image::set(), WXP::Image::setPixel(), and WXP::NowradPacket::val.
Referenced by WXP::RadPlot::draw().
int NowradFile::readHeader | ( | ) |
Reads in the file header and decodes information
References WXP::DomainVal::clat, WXP::DomainVal::clon, WXP::DateVal::day, WXP::DomainVal::dx, WXP::DomainVal::dy, WXP::StrLib::equal(), WXP::DateVal::hour, WXP::Domain::init(), WXP::Domain::LAMB, WXP::Domain::LATLON, WXP::DateVal::min, WXP::DateVal::month, WXP::DomainVal::nx, WXP::DomainVal::ny, WXP::DomainVal::param, WXP::DomainVal::plat, WXP::DomainVal::plon, WXP::DomainVal::proj, WXP::Const::RDC, WXP::File::read(), WXP::File::scanf(), WXP::Date::set(), WXP::Domain::set(), and WXP::DateVal::year.
Referenced by read().
int NowradFile::readLine | ( | ) |
Reads in line delimiter. Needs to be read at beginning of each line.
References WXP::File::endFile(), and WXP::File::read().
Referenced by read().
int NowradFile::readPacket | ( | NowradPacket & | packet | ) |
Reads in run length packet data
packet | Packet data |
References WXP::File::endFile(), WXP::NowradPacket::mask, WXP::File::read(), WXP::NowradPacket::run, WXP::File::seek(), and WXP::NowradPacket::val.
Referenced by read().
int NowradFile::rewind | ( | ) |
Rewinds the file
References WXP::File::rewind().