WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Member Functions | List of all members
WXP::KavradFile Class Reference

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)
 

Detailed Description

This class reads in Kavouras radar mosaic data files.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ KavradFile()

KavradFile::KavradFile ( )

Contructor. Initializes data

Member Function Documentation

◆ close()

int KavradFile::close ( )

Closes the file

References WXP::File::close().

◆ isOpen()

bool KavradFile::isOpen ( )

Checks to see if file open

Returns
True if open

Referenced by WXP::RadPlot::draw().

◆ open()

int KavradFile::open ( const char *  filename)

Opens a Kavouras radar file

Parameters
filenameFile to open
Returns
1 if opened file

References WXP::File::isOpen(), WXP::File::open(), and WXP::FileAttr::READ.

Referenced by WXP::RadPlot::draw().

◆ read()

int KavradFile::read ( Image image)

Reads in mosaic data and puts into Image object

Parameters
imageImage to save data to
Returns
1 if completed OK

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().

◆ readHeader()

int KavradFile::readHeader ( )

◆ readPacket()

int KavradFile::readPacket ( KavradPacket packet)

Reads in a run-length packet

Parameters
packetReturn packet info
Returns
0 if at end of data

References WXP::File::endFile(), WXP::File::read(), WXP::KavradPacket::run, and WXP::KavradPacket::val.

Referenced by read().

◆ rewind()

int KavradFile::rewind ( )

Rewinds the file

References WXP::File::rewind().


The documentation for this class was generated from the following files: