"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/CDMPressureConversions.cc" between
fimex-1.6.4.tar.gz and fimex-1.6.5.tar.gz

About: Fimex is a the File Interpolation, Manipulation and EXtraction library for gridded geospatial data. It converts between different, extensible dataformats (currently netcdf, NcML, grib1/2 and felt).

CDMPressureConversions.cc  (fimex-1.6.4):CDMPressureConversions.cc  (fimex-1.6.5)
/* /*
* Fimex, CDMPressureConversions.cc * Fimex, CDMPressureConversions.cc
* *
* (C) Copyright 2011, met.no * (C) Copyright 2011-2021, met.no
* *
* Project Info: https://wiki.met.no/fimex/start * Project Info: https://wiki.met.no/fimex/start
* *
* This library is free software; you can redistribute it and/or modify it * This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by * under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or * the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This library is distributed in the hope that it will be useful, but * This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
skipping to change at line 43 skipping to change at line 43
#include "fimex/CDMVerticalInterpolator.h" #include "fimex/CDMVerticalInterpolator.h"
#include "fimex/Data.h" #include "fimex/Data.h"
#include "fimex/Logger.h" #include "fimex/Logger.h"
#include "fimex/coordSys/CoordinateSystem.h" #include "fimex/coordSys/CoordinateSystem.h"
#include "fimex/coordSys/verticalTransform/ToVLevelConverter.h" #include "fimex/coordSys/verticalTransform/ToVLevelConverter.h"
#include "fimex/coordSys/verticalTransform/VerticalTransformation.h" #include "fimex/coordSys/verticalTransform/VerticalTransformation.h"
#include "fimex/coordSys/verticalTransform/VerticalTransformationUtils.h" #include "fimex/coordSys/verticalTransform/VerticalTransformationUtils.h"
#include "fimex/interpolation.h" #include "fimex/interpolation.h"
#include "fimex/vertical_coordinate_transformations.h" #include "fimex/vertical_coordinate_transformations.h"
#include "CDMMergeUtils.h"
#include <memory> #include <memory>
namespace MetNoFimex namespace MetNoFimex
{ {
static Logger_p logger = getLogger("fimex.CDMPressureConversions"); static Logger_p logger = getLogger("fimex.CDMPressureConversions");
using namespace std; using namespace std;
namespace { namespace {
template <class T>
shared_array<T> dataAs(DataPtr data);
template <>
shared_array<float> dataAs<float>(DataPtr data)
{
return data->asFloat();
}
template <>
shared_array<double> dataAs<double>(DataPtr data)
{
return data->asDouble();
}
template<typename T> template<typename T>
void convert_omega_to_vertical_wind(size_t size, const T* o, const T* p, const T * t, T* w); void convert_omega_to_vertical_wind(size_t size, const T* o, const T* p, const T * t, T* w);
template<> template<>
void convert_omega_to_vertical_wind<double>(size_t size, const double* o, const double* p, const double* t, double* w) void convert_omega_to_vertical_wind<double>(size_t size, const double* o, const double* p, const double* t, double* w)
{ {
mifi_omega_to_vertical_wind(size, o, p, t, w); mifi_omega_to_vertical_wind(size, o, p, t, w);
} }
template<> template<>
 End of changes. 3 change blocks. 
16 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)