RinexMetData Class Reference
[RINEX meteorological files]

#include <RinexMetData.hpp>

Inheritance diagram for RinexMetData:

Inheritance graph
[legend]
Collaboration diagram for RinexMetData:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class stores, reads, and writes RINEX 2 & 3 Met records.

Warning:
When writing a RinexMetData, the RinexMetStream::headerData must have the correct observation types set or else no data will be written.
See also:
rinex_met_read_write.cpp for an example.

rinex_met_test.cpp for an example.

RinexMetStream.

RinexMetHeader for information on writing RINEX 2 & 3 Met files.

Definition at line 71 of file RinexMetData.hpp.

Public Types

typedef std::map< RinexMetHeader::RinexMetType,
double > 
RinexMetMap
 A map for storing one line of observations, mapping the observation type to its value.

Public Member Functions

 RinexMetData ()
virtual bool isData (void) const
 RinexMetData is "data" so this function always returns true.
virtual void dump (std::ostream &s) const
 A debug output function.
bool operator< (const RinexMetData &right) const
 less-than operator, for use with STL sort()

Public Attributes

Rinex weather data
CommonTime time
 The time this data was recorded, in GPS time system.
RinexMetMap data
 The data itself in map form.

Static Public Attributes

const int maxObsPerLine = 8
 The maximum number of obs per line before you need a new line.
const int maxObsPerContinuationLine = 10
 The max number of obs per continuation line before you need a new line.

Protected Member Functions

void reallyPutRecord (FFStream &s) const throw (std::exception, FFStreamError, gpstk::StringUtils::StringException)
 Writes the met data to the file stream formatted correctly.
virtual void reallyGetRecord (FFStream &s) throw (std::exception, FFStreamError, gpstk::StringUtils::StringException)
 This function retrieves a RINEX 2 or 3 Met record from the given FFStream.


Member Typedef Documentation

typedef std::map<RinexMetHeader::RinexMetType, double> RinexMetMap
 

A map for storing one line of observations, mapping the observation type to its value.

Definition at line 94 of file RinexMetData.hpp.


Constructor & Destructor Documentation

RinexMetData  )  [inline]
 

Definition at line 76 of file RinexMetData.hpp.

References gpstk::BEGINNING_OF_TIME.


Member Function Documentation

void dump std::ostream &  s  )  const [virtual]
 

A debug output function.

Reimplemented from FFData.

Definition at line 260 of file RinexMetData.cpp.

References RinexMetData::data, and RinexMetData::time.

virtual bool isData void   )  const [inline, virtual]
 

RinexMetData is "data" so this function always returns true.

Reimplemented from FFData.

Definition at line 81 of file RinexMetData.hpp.

bool operator< const RinexMetData right  )  const [inline]
 

less-than operator, for use with STL sort()

Definition at line 89 of file RinexMetData.hpp.

References RinexMetData::time.

void reallyGetRecord FFStream s  )  throw (std::exception, FFStreamError, gpstk::StringUtils::StringException) [protected, virtual]
 

This function retrieves a RINEX 2 or 3 Met record from the given FFStream.

If an error is encountered reading from the stream, the stream is returned to its original position and its fail-bit is set.

Exceptions:
StringException when a StringUtils function fails
FFStreamError when exceptions(failbit) is set and a read or formatting error occurs. This also resets the stream to its pre-read position.

Implements FFData.

Definition at line 126 of file RinexMetData.cpp.

References FFTextStream::formattedGetLine(), GPSTK_THROW, RinexMetStream::header, RinexMetStream::headerRead, and RinexMetHeader::obsTypeList.

void reallyPutRecord FFStream s  )  const throw (std::exception, FFStreamError, gpstk::StringUtils::StringException) [protected, virtual]
 

Writes the met data to the file stream formatted correctly.

Implements FFData.

Definition at line 58 of file RinexMetData.cpp.

References gpstk::StringUtils::asString(), GPSTK_THROW, RinexMetStream::header, FFTextStream::lineNumber, RinexMetHeader::obsTypeList, and gpstk::StringUtils::rightJustify().


Member Data Documentation

RinexMetMap data
 

The data itself in map form.

Definition at line 100 of file RinexMetData.hpp.

Referenced by RinexMetData::dump(), RinexMetDataOperatorLessThanFull::operator()(), and MetReader::read().

const int maxObsPerContinuationLine = 10 [static]
 

The max number of obs per continuation line before you need a new line.

Definition at line 56 of file RinexMetData.cpp.

const int maxObsPerLine = 8 [static]
 

The maximum number of obs per line before you need a new line.

Definition at line 55 of file RinexMetData.cpp.

CommonTime time
 

The time this data was recorded, in GPS time system.

Definition at line 99 of file RinexMetData.hpp.

Referenced by RinexMetData::dump(), RinexMetDataFilterTime::operator()(), RinexMetDataOperatorEqualsSimple::operator()(), RinexMetDataOperatorLessThanSimple::operator()(), RinexMetDataOperatorLessThanFull::operator()(), RinexMetData::operator<(), and MetReader::read().


The documentation for this class was generated from the following files:
Generated on Tue May 21 03:31:55 2013 for GPS ToolKit Software Library by  doxygen 1.3.9.1