WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
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

◆ 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::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()

◆ 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::KavradPacket::run, and WXP::KavradPacket::val.

Referenced by read().

◆ rewind()

int KavradFile::rewind ( )

Rewinds the file


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