#include <Felt_File2.h>
Public Member Functions | |
Felt_File2 () | |
constructor | |
Felt_File2 (const std::string &filename) throw (Felt_File_Error) | |
Felt_File2 (const std::string &filename, const std::vector< std::string > &dianaParamList, const std::map< std::string, std::string > &options) throw (Felt_File_Error) | |
virtual | ~Felt_File2 () |
const boost::shared_ptr < Felt_Array2 > | getFeltArray (const std::string &compName) const throw (Felt_File_Error) |
retrieve a Felt_Array2 | |
boost::shared_ptr < MetNoFimex::Data > | getScaledDataSlice (boost::shared_ptr< Felt_Array2 > feltArray, const boost::posix_time::ptime time, const LevelPair level) throw (Felt_File_Error) |
retrieve a data slice | |
std::vector< boost::shared_ptr < Felt_Array2 > > | listFeltArrays () const |
std::map< short, std::vector < LevelPair > > | getFeltLevelPairs () const |
const std::map< LevelPair, int > & | getHybridLevels () const |
std::vector < boost::posix_time::ptime > | getFeltTimes () const |
all time values, sorted | |
int | getNX () const |
get size in x direction | |
int | getNY () const |
get size in y direction | |
boost::shared_ptr < MetNoFimex::Data > | getXData () const throw (Felt_File_Error) |
get the values of the x axis | |
boost::shared_ptr < MetNoFimex::Data > | getYData () const throw (Felt_File_Error) |
get the values of the y axis | |
int | getGridType () const throw (Felt_File_Error) |
boost::shared_ptr < felt::FeltGridDefinition > | getGridDefinition () const throw (Felt_File_Error) |
assumes one set of grid-parameters for the whole file |
Felt_File2 gives c++ style access to felt files. It uses internally libmi and caches the table of contents
MetNoFelt::Felt_File2::Felt_File2 | ( | ) | [inline] |
constructor
open an empty felt file, just a default constructor, no useful information
MetNoFelt::Felt_File2::Felt_File2 | ( | const std::string & | filename | ) | throw (Felt_File_Error) [explicit] |
MetNoFelt::Felt_File2::Felt_File2 | ( | const std::string & | filename, | |
const std::vector< std::string > & | dianaParamList, | |||
const std::map< std::string, std::string > & | options | |||
) | throw (Felt_File_Error) [explicit] |
open and read toc of a felt file
paramList | a list of known parameters (in diana format, e.g. 17,2,1000:prod=74), only the known parameters will be read |
virtual MetNoFelt::Felt_File2::~Felt_File2 | ( | ) | [virtual] |
const boost::shared_ptr<Felt_Array2> MetNoFelt::Felt_File2::getFeltArray | ( | const std::string & | compName | ) | const throw (Felt_File_Error) |
boost::shared_ptr<MetNoFimex::Data> MetNoFelt::Felt_File2::getScaledDataSlice | ( | boost::shared_ptr< Felt_Array2 > | feltArray, | |
const boost::posix_time::ptime | time, | |||
const LevelPair | level | |||
) | throw (Felt_File_Error) |
retrieve a data slice
retrieve the data prescaled (if float or double) and replaced with the new fill value
compName | parameter name of felt file | |
time | time of slice | |
level | level of slice |
std::vector<boost::shared_ptr<Felt_Array2> > MetNoFelt::Felt_File2::listFeltArrays | ( | ) | const |
retrieve all felt arrays
std::map<short, std::vector<LevelPair> > MetNoFelt::Felt_File2::getFeltLevelPairs | ( | ) | const |
std::vector<boost::posix_time::ptime> MetNoFelt::Felt_File2::getFeltTimes | ( | ) | const |
all time values, sorted
int MetNoFelt::Felt_File2::getNX | ( | ) | const |
get size in x direction
int MetNoFelt::Felt_File2::getNY | ( | ) | const |
get size in y direction
boost::shared_ptr<MetNoFimex::Data> MetNoFelt::Felt_File2::getXData | ( | ) | const throw (Felt_File_Error) |
get the values of the x axis
boost::shared_ptr<MetNoFimex::Data> MetNoFelt::Felt_File2::getYData | ( | ) | const throw (Felt_File_Error) |
get the values of the y axis
int MetNoFelt::Felt_File2::getGridType | ( | ) | const throw (Felt_File_Error) |
assumes one set of grid-parameters for the whole file, returns parameter between 1 and 6, without extra definition
boost::shared_ptr<felt::FeltGridDefinition> MetNoFelt::Felt_File2::getGridDefinition | ( | ) | const throw (Felt_File_Error) |
assumes one set of grid-parameters for the whole file