MI - Fimex
Public Types | Public Member Functions | List of all members
felt::FeltField Class Reference

#include <FeltField.h>

Inheritance diagram for felt::FeltField:

Public Types

typedef boost::array< word, 16 > Header
 

Public Member Functions

 FeltField (const FeltFile &ff, size_t index)
 
 ~FeltField ()
 
bool valid () const
 
int producer () const
 
int gridArea () const
 
boost::posix_time::ptime referenceTime () const
 
boost::posix_time::ptime validTime () const
 
int parameter () const
 
int dataType () const
 
int verticalCoordinate () const
 
int level1 () const
 
int level2 () const
 
int gridType () const
 
void grid (std::vector< word > &out) const
 
size_t gridSize () const
 
int scaleFactor () const
 
int xNum () const
 
int yNum () const
 
int miscField () const
 this field is described in the felt documentation as "word 19 in data part" More...
 
bool isEpsRunParameter () const
 
int dataVersion () const
 
FeltGridDefinitionPtr projectionInformation () const
 throws More...
 
std::string information () const
 
std::string gridInformation () const
 
const HeadergetHeader () const
 access felt index header More...
 

Member Typedef Documentation

typedef boost::array<word, 16> felt::FeltField::Header

Constructor & Destructor Documentation

felt::FeltField::FeltField ( const FeltFile ff,
size_t  index 
)
felt::FeltField::~FeltField ( )

Member Function Documentation

int felt::FeltField::dataType ( ) const
inline

read the time dataType, i.e. 1=analysis 2=interpolated/initialization 3=prognosis 4=parameter-field(no time)

int felt::FeltField::dataVersion ( ) const

Get data version if this is an eps parameter, otherwise 0

Referenced by isEpsRunParameter().

const Header& felt::FeltField::getHeader ( ) const
inline

access felt index header

void felt::FeltField::grid ( std::vector< word > &  out) const

Read the grid from file.

Referenced by gridType().

int felt::FeltField::gridArea ( ) const
inline
std::string felt::FeltField::gridInformation ( ) const

Referenced by isEpsRunParameter().

size_t felt::FeltField::gridSize ( ) const

Referenced by gridType(), and valid().

int felt::FeltField::gridType ( ) const
inline
std::string felt::FeltField::information ( ) const

Referenced by isEpsRunParameter().

bool felt::FeltField::isEpsRunParameter ( ) const
inline
int felt::FeltField::level1 ( ) const

Get primary level value

Referenced by verticalCoordinate().

int felt::FeltField::level2 ( ) const

Get the secondary level value, or 0 if that level field has internally been used for something else. This will happen if the field is part of an enseble run.

Referenced by verticalCoordinate().

int felt::FeltField::miscField ( ) const

this field is described in the felt documentation as "word 19 in data part"

Referenced by gridType().

int felt::FeltField::parameter ( ) const

Get the parameter value. This is the logical value, which means that if the parameter is part of an ensemble run, it will not start with 2000,3000,4000,5000.

Referenced by gridArea().

int felt::FeltField::producer ( ) const
inline
FeltGridDefinitionPtr felt::FeltField::projectionInformation ( ) const

throws

Referenced by isEpsRunParameter().

boost::posix_time::ptime felt::FeltField::referenceTime ( ) const

Referenced by gridArea().

int felt::FeltField::scaleFactor ( ) const

Referenced by gridType().

bool felt::FeltField::valid ( ) const
inline

References gridSize().

boost::posix_time::ptime felt::FeltField::validTime ( ) const

Referenced by gridArea().

int felt::FeltField::verticalCoordinate ( ) const
inline

References level1(), and level2().

int felt::FeltField::xNum ( ) const

Referenced by gridType().

int felt::FeltField::yNum ( ) const

Referenced by gridType().


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