MI - Fimex
Public Member Functions | List of all members
MetNoFimex::SpatialAxisSpec Class Reference

#include <fimex/SpatialAxisSpec.h>

Public Member Functions

 SpatialAxisSpec (const std::string &axisSpec) throw (CDMException)
 
 SpatialAxisSpec (const std::string &axisSpec, double start, double end) throw (CDMException)
 
virtual ~SpatialAxisSpec ()
 
bool requireStartEnd ()
 
void setStartEnd (double start, double end)
 
const std::vector< double > & getAxisSteps ()
 

Detailed Description

This class can be used to describe a list of spatial units in an efficient textual way.

A SpatialAxisSpec consists of at least of values:

relativeStart will reset the relative value 0 to the first value larger than x0 (original start time) with x0 = i * (v1-v0)* unit with i being a integer.

axisspec = -450000,-400000,...,50000
timespec = -50,0,...,x,x+50;relativeStart=17;unit=km
Warning
The 'unit' parameter is currently not supported, please enter values as m or degree
the RELVALUES currently must be in m, degree not supported (yet?)

Constructor & Destructor Documentation

MetNoFimex::SpatialAxisSpec::SpatialAxisSpec ( const std::string axisSpec)
throw (CDMException
)
inline

Define a spatialAxisSpec. Depending on the axisSpec (relativeStart?), start and end must be given later

Parameters
axisSpecstring representation as explained above
MetNoFimex::SpatialAxisSpec::SpatialAxisSpec ( const std::string axisSpec,
double  start,
double  end 
)
throw (CDMException
)
inline

Define a spatialAxisSpec

Parameters
axisSpecstring representation as explained above
startplace of data start, in degree or m
endplace to end, in degree or m
virtual MetNoFimex::SpatialAxisSpec::~SpatialAxisSpec ( )
inlinevirtual

References requireStartEnd().

Member Function Documentation

const std::vector<double>& MetNoFimex::SpatialAxisSpec::getAxisSteps ( )
inline
Returns
steps on the axis in degree or m
bool MetNoFimex::SpatialAxisSpec::requireStartEnd ( )

Check if axisSpec still requires start and end place. This returns false if a) start and end have been given already b) the axisSpec is independant of start and end

Referenced by ~SpatialAxisSpec().

void MetNoFimex::SpatialAxisSpec::setStartEnd ( double  start,
double  end 
)
inline

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