MI - Fimex
Height.h
Go to the documentation of this file.
1 /*
2  * Fimex, Height.h
3  *
4  * (C) Copyright 2013, met.no
5  *
6  * Project Info: https://wiki.met.no/fimex/start
7  *
8  * This library is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation; either version 2.1 of the License, or
11  * (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16  * License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
21  * USA.
22  *
23  * Created on: Aug 6, 2013
24  * Author: heikok
25  */
26 
27 #ifndef HEIGHT_H_
28 #define HEIGHT_H_
29 
30 
32 
33 namespace MetNoFimex
34 {
35 
40 {
41 public:
44  Height(const std::string& height) : height(height) {}
45  virtual ~Height() {}
50  static const std::string NAME() {return "height";}
54  virtual std::string getName() const { return NAME(); }
55  virtual int getPreferredVerticalType() const { return MIFI_VINT_HEIGHT; }
56  virtual std::string getParameterString() const { return "h="+height; }
57  virtual bool isComplete() const {return height != "";}
58 protected:
59  virtual boost::shared_ptr<ToVLevelConverter> getPressureConverter(const boost::shared_ptr<CDMReader>& reader, size_t unLimDimPos, boost::shared_ptr<const CoordinateSystem> cs, size_t nx, size_t ny, size_t nt) const;
60  virtual boost::shared_ptr<ToVLevelConverter> getHeightConverter(const boost::shared_ptr<CDMReader>& reader, size_t unLimDimPos, boost::shared_ptr<const CoordinateSystem> cs, size_t nx, size_t ny, size_t nz, size_t nt) const;
61  virtual boost::shared_ptr<ToVLevelConverter> getAltitudeConverter(const boost::shared_ptr<CDMReader>& reader, size_t unLimDimPos, boost::shared_ptr<const CoordinateSystem> cs, size_t nx, size_t ny, size_t nz, size_t nt) const;
62 };
63 
64 } /* namespace MetNoFimex */
65 #endif /* HEIGHT_H_ */
const std::string height
name of the height variable
Definition: Height.h:43
basic_string< char > string
virtual boost::shared_ptr< ToVLevelConverter > getAltitudeConverter(const boost::shared_ptr< CDMReader > &reader, size_t unLimDimPos, boost::shared_ptr< const CoordinateSystem > cs, size_t nx, size_t ny, size_t nz, size_t nt) const
Definition: Height.h:39
virtual ~Height()
Definition: Height.h:45
Height(const std::string &height)
Definition: Height.h:44
static const std::string NAME()
Definition: Height.h:50
Definition: C_CDMReader.h:35
virtual std::string getName() const
Definition: Height.h:54
Definition: VerticalTransformation.h:79
virtual bool isComplete() const
Definition: Height.h:57
virtual boost::shared_ptr< ToVLevelConverter > getHeightConverter(const boost::shared_ptr< CDMReader > &reader, size_t unLimDimPos, boost::shared_ptr< const CoordinateSystem > cs, size_t nx, size_t ny, size_t nz, size_t nt) const
#define MIFI_VINT_HEIGHT
vertical interpolation type
Definition: mifi_constants.h:175
virtual std::string getParameterString() const
list the parameters
Definition: Height.h:56
virtual boost::shared_ptr< ToVLevelConverter > getPressureConverter(const boost::shared_ptr< CDMReader > &reader, size_t unLimDimPos, boost::shared_ptr< const CoordinateSystem > cs, size_t nx, size_t ny, size_t nt) const
virtual int getPreferredVerticalType() const
the most natural vertical type, one of the MIFI_VINT_* in fimex/mifi_constants.h
Definition: Height.h:55