MI - Fimex
|
#include <fimex/coordSys/CoordinateSystem.h>
Public Types | |
typedef boost::shared_ptr< const CoordinateAxis > | ConstAxisPtr |
typedef boost::shared_ptr< CoordinateAxis > | AxisPtr |
typedef std::vector< ConstAxisPtr > | ConstAxisList |
Public Member Functions | |
CoordinateSystem () | |
CoordinateSystem (const std::string &conventionName) | |
virtual | ~CoordinateSystem () |
virtual std::string | id () const |
virtual std::string | horizontalId () const |
virtual std::string | getConventionName () const |
virtual void | setConventionName (const std::string &conventionName) |
virtual bool | isComplete (const std::string &varName) const |
virtual void | setComplete (const std::string &varName, bool set=true) |
virtual bool | isCSFor (const std::string &varName) const |
virtual void | setCSFor (const std::string &varName, bool set=true) |
virtual bool | isSimpleSpatialGridded () const |
virtual void | setSimpleSpatialGridded (bool set=true) |
virtual bool | hasProjection () const |
virtual boost::shared_ptr< const Projection > | getProjection () const |
virtual void | setProjection (boost::shared_ptr< const Projection > proj) |
virtual bool | hasVerticalTransformation () const |
virtual boost::shared_ptr< const VerticalTransformation > | getVerticalTransformation () const |
virtual void | setVerticalTransformation (boost::shared_ptr< const VerticalTransformation > vtran) |
virtual bool | hasAxisType (CoordinateAxis::AxisType type) const |
virtual ConstAxisPtr | findAxisOfType (CoordinateAxis::AxisType type) const |
virtual ConstAxisPtr | findAxisOfType (const std::vector< CoordinateAxis::AxisType > &types) const |
virtual ConstAxisPtr | getGeoXAxis () const |
virtual ConstAxisPtr | getGeoYAxis () const |
virtual ConstAxisPtr | getGeoZAxis () const |
virtual ConstAxisPtr | getTimeAxis () const |
virtual ConstAxisList | getAxes () const |
virtual void | setAxis (ConstAxisPtr axis) |
virtual void | setAuxiliaryAxis (ConstAxisPtr axis) |
virtual std::set< std::string > | getDependencyVariables () const |
virtual void | addDependencyVariable (std::string varName) |
CoordinateSystems are usually created using the listCoordinateSystems(boost::shared_ptr<CDMReader>) function, see example there.
To investigate the coordinate systems of a file, use {fimex –printCS}.
typedef boost::shared_ptr<CoordinateAxis> MetNoFimex::CoordinateSystem::AxisPtr |
a garbage collected pointer to a CoordinateAxis
a list to constant axis pointer
typedef boost::shared_ptr<const CoordinateAxis> MetNoFimex::CoordinateSystem::ConstAxisPtr |
a garbage collected pointer to a constant coordinateAxis
MetNoFimex::CoordinateSystem::CoordinateSystem | ( | ) |
CoordinateSystems are usually created within the listCoordinateSystems(boost::shared_ptr<CDMReader>) funcion.
|
explicit |
|
inlinevirtual |
References addDependencyVariable(), MetNoFimex::enhanceVectorProperties(), findAxisOfType(), MetNoFimex::findBestHorizontalCoordinateSystems(), getAxes(), getConventionName(), getDependencyVariables(), getGeoXAxis(), getGeoYAxis(), getGeoZAxis(), getProjection(), getTimeAxis(), getVerticalTransformation(), hasAxisType(), hasProjection(), hasVerticalTransformation(), horizontalId(), id(), isComplete(), isCSFor(), isSimpleSpatialGridded(), MetNoFimex::listCoordinateSystems(), MetNoFimex::MIFI_DEPRECATED(), MetNoFimex::operator<<(), setAuxiliaryAxis(), setAxis(), setComplete(), setConventionName(), setCSFor(), setProjection(), setSimpleSpatialGridded(), and setVerticalTransformation().
|
virtual |
|
virtual |
find the first axis with exactly the types
type |
Referenced by ~CoordinateSystem().
|
virtual |
find the first axis with one of the types
types | list of types |
|
virtual |
get all axes, which are not duplicated (i.e. twice in auxiliary)
Referenced by ~CoordinateSystem().
|
virtual |
Referenced by ~CoordinateSystem().
|
virtual |
Get all dependency-variables for this Coordinate-System, i.e. axes, grid-mapping-variable, formula-terms, ...
Referenced by ~CoordinateSystem().
|
virtual |
get the geographical x/lon-axis, that is one of GeoX, Longitude (in that order if several exist)
Referenced by ~CoordinateSystem().
|
virtual |
Set/overwrite the geographic y axis, that is one of GeoY, Latitude (in that order if several exist)
Referenced by ~CoordinateSystem().
|
virtual |
get the geographical z-axis, that is one of GeoZ, Height, Pressure (in that order if several exist)
Referenced by ~CoordinateSystem().
|
virtual |
Get the projection of the coordinate-system (projection of GeoX, GeoY and optionally GeoZ) This includes also coordinate-systems in latitude-longitude 'projection'.
Referenced by ~CoordinateSystem().
|
virtual |
get the time-axis, or NULL/0
Referenced by ~CoordinateSystem().
|
virtual |
Get the vertical transformation of the coordinate-system (GeoZ) This includes also height or pressure 'transformations'
Referenced by ~CoordinateSystem().
|
virtual |
Check if the CoordinateSystem contains exactly the axis type
type | axis type to check against |
Referenced by ~CoordinateSystem().
|
virtual |
Check if the coordinate-system has a projection (of GeoX, GeoY and optionally GeoZ) This includes also coordinate-systems in latitude-longitude 'projection'.
Referenced by ~CoordinateSystem().
|
virtual |
Check if the coordinate-system has a vertical transformation (of GeoZ) This includes also coordinate-systems in pressure or height.
Referenced by ~CoordinateSystem().
|
virtual |
get an id for the horizontal part of the coordinate system, i.e. geoXAxis and geoYAxis
Referenced by ~CoordinateSystem().
|
virtual |
unique identifier for a coordinate system
Referenced by ~CoordinateSystem().
|
virtual |
All axes of this system are used by the variable varName
varName | variable name |
Referenced by ~CoordinateSystem().
|
virtual |
All dimensions of the variable are described by CoordinateSystem
varName | variable name |
Referenced by ~CoordinateSystem().
|
virtual |
Check if coordinate system has direct spatial axes, i.e. 1-dim x,y axes or 1-dim lon,lat axes
Referenced by ~CoordinateSystem().
|
virtual |
Set an auxiliary axis. An auxiliary axis may be dropped silently if another axis with the axistype exists.
Referenced by ~CoordinateSystem().
|
virtual |
Set any axis.
CDMException | if an axis with the same axistype (except undefined) exists |
Referenced by ~CoordinateSystem().
|
virtual |
set or unset if the coordinate system is complete for the variable
Referenced by ~CoordinateSystem().
|
virtual |
|
virtual |
Set or unset if all dimensions are described by the CoordinateSystem
Referenced by ~CoordinateSystem().
|
virtual |
Set the projection of the coordinate-system (projection of GeoX, GeoY and optionally GeoZ)
Referenced by ~CoordinateSystem().
|
virtual |
Set or unset if this coordinate system has spatial axes, i.e. 1-dim x,y or lon/lat axes
Referenced by ~CoordinateSystem().
|
virtual |
Set the vertical transformation of the coordinate-system (transformation of GeoZ)
Referenced by ~CoordinateSystem().