"Fossies" - the Fresh Open Source Software Archive

Member "fimex-1.4.1/include/fimex/coordSys/verticalTransform/LnPressureToPressureConverter.h" (30 Oct 2019, 1980 Bytes) of package /linux/privat/fimex-1.4.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "LnPressureToPressureConverter.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2   Fimex, include/fimex/coordSys/verticalTransform/LnPressureToPressureConverter.h
    3 
    4   Copyright (C) 2019 met.no
    5 
    6   Contact information:
    7   Norwegian Meteorological Institute
    8   Box 43 Blindern
    9   0313 OSLO
   10   NORWAY
   11   email: diana@met.no
   12 
   13   Project Info:  https://wiki.met.no/fimex/start
   14 
   15   This library is free software; you can redistribute it and/or modify it
   16   under the terms of the GNU Lesser General Public License as published by
   17   the Free Software Foundation; either version 2.1 of the License, or
   18   (at your option) any later version.
   19 
   20   This library is distributed in the hope that it will be useful, but
   21   WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
   22   or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
   23   License for more details.
   24 
   25   You should have received a copy of the GNU Lesser General Public
   26   License along with this library; if not, write to the Free Software
   27   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
   28   USA.
   29 */
   30 
   31 #ifndef LNPRESSURETOPRESSURECONVERTER_H
   32 #define LNPRESSURETOPRESSURECONVERTER_H
   33 
   34 #include "VerticalConverter.h"
   35 
   36 namespace MetNoFimex {
   37 
   38 /**
   39  * @headerfile fimex/coordSys/verticalTransform/LnPressureToPressureConverter.h
   40  */
   41 
   42 /**
   43  * Constant pressure levels in time and space, given as ln(p)
   44  */
   45 class LnPressureToPressureConverter : public BasicVerticalConverter {
   46 public:
   47 
   48     /**
   49      * @param p0 reference-pressure in hPa
   50      * @param lnP The constant pressure levels given as ln(P/P0)
   51      */
   52     LnPressureToPressureConverter(CDMReader_p reader, CoordinateSystem_cp cs, const std::string& p0, const std::string& lnP)
   53         : BasicVerticalConverter(reader, cs)
   54         , p0_(p0)
   55         , lnP_(lnP)
   56     {
   57     }
   58 
   59     std::vector<std::string> getShape() const;
   60     DataPtr getDataSlice(const SliceBuilder& sb) const;
   61 
   62 private:
   63     const std::string p0_;
   64     const std::string lnP_;
   65 };
   66 
   67 } // namespace MetNoFimex
   68 
   69 #endif // LNPRESSURETOPRESSURECONVERTER_H