WXP C++ Library Version 6.74.9
|
This class reads and decodes profiler. More...
#include "../include/ProfFile.h"
Public Types | |
enum | Type { BUFR , NETCDF } |
Public Member Functions | |
ProfFile () | |
ProfFile (const char *filename) | |
ProfFile (Filename &filename) | |
~ProfFile () | |
int | init () |
int | checkType (const char *filename) |
int | open (const char *filename) |
int | open (Filename &filename) |
int | close () |
bool | isOpen () |
int | setDate (Date &rdate) |
int | read (ProfData &data) |
This class reads and decodes profiler.
ProfFile::ProfFile | ( | ) |
Constructor. Initializes class data
References init().
ProfFile::ProfFile | ( | const char * | filename | ) |
ProfFile::ProfFile | ( | Filename & | filename | ) |
ProfFile::~ProfFile | ( | ) |
Destructor.
int ProfFile::checkType | ( | const char * | filename | ) |
Checks the type of data in the file
filename | File to check |
References WXP::File::isOpen(), and WXP::File::scanf().
int ProfFile::close | ( | ) |
Closes the file
References WXP::BufrFile::close().
int ProfFile::init | ( | ) |
Initializes class data
Referenced by ProfFile(), ProfFile(), and ProfFile().
bool ProfFile::isOpen | ( | ) |
Is file opened
int ProfFile::open | ( | const char * | filename | ) |
Opens a watch file
filename | File to open |
References WXP::BufrFile::getNumSubsets(), WXP::BufrFile::isOpen(), WXP::BufrFile::open(), and WXP::BufrFile::readHeader().
Referenced by open(), ProfFile(), and ProfFile().
int ProfFile::open | ( | Filename & | filename | ) |
Opens a watch file
filename | File to open |
References WXP::Filename::getDate(), WXP::Filename::getName(), and open().
int ProfFile::read | ( | ProfData & | data | ) |
Reads and decodes the data
watch | Profiler data |
References WXP::BufrData::getMajor(), WXP::BufrData::getMinor(), WXP::BufrData::getNumber(), WXP::BufrData::getValue(), WXP::ProfData::init(), WXP::EarthPoint::lat, WXP::EarthPoint::lon, WXP::BufrFile::nextDataset(), and WXP::BufrData::print().
int ProfFile::setDate | ( | Date & | rdate | ) |
Sets the base date. Used to get year and month to supplement infor in file.
rdate | Date |