WXP C++ Library Version 6.74.9
|
This class reads and decodes NIDS data from file. More...
#include "../include/Lev2File.h"
Public Types | |
enum | Type { RAW , COMP } |
enum | DataType { REF , VEL , SPECT } |
Public Member Functions | |
Lev2File () | |
Lev2File (const char *filename, int rtype) | |
~Lev2File () | |
int | init () |
int | open (const char *filename, int rtype) |
int | close () |
bool | isOpen () |
int | readData () |
int | readBytes (unsigned char *data, int dsize) |
int | bseek (int byte) |
int | boffset (int byte) |
int | getByte () |
int | getUByte () |
int | getShort () |
int | getLong () |
float | getFloat () |
int | setId (const char *rid) |
const char * | getId () |
int | setDataType (int type) |
int | getNumData () |
int | setCompress (int val) |
int | getCompress () |
int | getHeader (Lev2Info &info) |
int | getBlock (Lev2Data &data) |
int | nextBlock () |
float | getData () |
bool | hasRef () |
bool | hasVel () |
bool | hasSpect () |
This class reads and decodes NIDS data from file.
Data type
Enumerator | |
---|---|
REF | Reflectivity |
VEL | Velocity |
SPECT | Spectrum width |
enum WXP::Lev2File::Type |
Lev2File::Lev2File | ( | ) |
Constructor. Initializes class data
References init().
Lev2File::Lev2File | ( | const char * | filename, |
int | rtype | ||
) |
Lev2File::~Lev2File | ( | ) |
Destructor.
int Lev2File::close | ( | ) |
Closes the file
References WXP::File::close().
int Lev2File::getByte | ( | ) |
Reads in a byte value
|
inline |
Returns whether data are compressed
int Lev2File::getLong | ( | ) |
Reads in a integer value (4 bytes)
int Lev2File::getShort | ( | ) |
Reads in a short value (2 bytes)
int Lev2File::getUByte | ( | ) |
Reads in a byte value
int Lev2File::init | ( | ) |
Initializes class data
References COMP, WXP::Buffer::init(), and REF.
Referenced by Lev2File(), and Lev2File().
bool Lev2File::isOpen | ( | ) |
Is file opened
Referenced by WXP::Lev2Plot::draw(), and WXP::Lev2Plot::getDomain().
int Lev2File::open | ( | const char * | filename, |
int | rtype | ||
) |
Opens a NIDS file
filename | File to open |
References COMP, WXP::File::isOpen(), and WXP::File::open().
Referenced by WXP::Lev2Plot::draw(), WXP::Lev2Plot::getDomain(), and Lev2File().