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

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)
 

Detailed Description

This class reads in WSI NOWRad radar mosaic files.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ NowradFile()

NowradFile::NowradFile ( )

Constructor. Initializes data.

Member Function Documentation

◆ close()

int NowradFile::close ( )

Closes the file

References WXP::File::close().

◆ isOpen()

bool NowradFile::isOpen ( )

Returns if file opened

Returns
True if opened

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

◆ open()

int NowradFile::open ( const char *  filename)

Opens a Nowrad 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 NowradFile::read ( Image image)

◆ readHeader()

int NowradFile::readHeader ( )

◆ readLine()

int NowradFile::readLine ( )

Reads in line delimiter. Needs to be read at beginning of each line.

Returns
0 if end of data

References WXP::File::endFile(), and WXP::File::read().

Referenced by read().

◆ readPacket()

int NowradFile::readPacket ( NowradPacket packet)

Reads in run length packet data

Parameters
packetPacket data

References WXP::File::endFile(), WXP::NowradPacket::mask, WXP::File::read(), WXP::NowradPacket::run, WXP::File::seek(), and WXP::NowradPacket::val.

Referenced by read().

◆ rewind()

int NowradFile::rewind ( )

Rewinds the file

References WXP::File::rewind().


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