"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/metgm/MetGmTags.h" between
fimex-1.4.1.tar.gz and fimex-1.4.2.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).

MetGmTags.h  (fimex-1.4.1):MetGmTags.h  (fimex-1.4.2)
/* /*
* Fimex * Fimex
* *
* (C) Copyright 2011, met.no * (C) Copyright 2011-2019, 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 51 skipping to change at line 51
class MetGmGroup3Ptr; class MetGmGroup3Ptr;
class MetGmGroup5Ptr; class MetGmGroup5Ptr;
class MetGmXTag; class MetGmXTag;
class MetGmYTag; class MetGmYTag;
class MetGmTimeTag; class MetGmTimeTag;
class MetGmVerticalTag; class MetGmVerticalTag;
class MetGmTags { class MetGmTags {
public: public:
static std::shared_ptr<MetGmTags> createMetGmTagsForWriting(const CDMRea der_p pCdmReader, const CDMVariable* pVariable, static std::shared_ptr<MetGmTags> createMetGmTagsForWriting(const CDMRea der_p pCdmReader, const CDMVariable* pVariable,
const std::s const std::s
hared_ptr<MetGmHandlePtr> mgmHandle, const unsigned short p_id, hared_ptr<MetGmHandlePtr> mgmHandle, const unsigned short p_id);
const std::s
tring fillValue = std::string(), const std::string addOffset = std::string(),
const std::s
tring scaleFactor = std::string());
static std::shared_ptr<MetGmTags> createMetGmTagsForReading(const std::s hared_ptr<MetGmGroup1Ptr> pGp1, const std::shared_ptr<MetGmGroup2Ptr> pGp2, static std::shared_ptr<MetGmTags> createMetGmTagsForReading(const std::s hared_ptr<MetGmGroup1Ptr> pGp1, const std::shared_ptr<MetGmGroup2Ptr> pGp2,
const std::s hared_ptr<MetGmVerticalTag> vTag); const std::s hared_ptr<MetGmVerticalTag> vTag);
static std::shared_ptr<MetGmTags> createMetGmTagsForSlicedReading(const std::shared_ptr<MetGmGroup1Ptr> pGp1, static std::shared_ptr<MetGmTags> createMetGmTagsForSlicedReading(const std::shared_ptr<MetGmGroup1Ptr> pGp1,
const std::shared_ptr<MetGmGroup2Ptr> pGp2, const std::shared_ptr<MetGmGroup2Ptr> pGp2,
const std::shared_ptr<MetGmVerticalTag> vTag); const std::shared_ptr<MetGmVerticalTag> vTag);
static std::shared_ptr<MetGmTags> createMetGmTagsForSlicedWriting(const CDMReader_p pCdmReader, const CDMVariable* pVariable, static std::shared_ptr<MetGmTags> createMetGmTagsForSlicedWriting(const CDMReader_p pCdmReader, const CDMVariable* pVariable,
const std::shared_ptr<MetGmHandlePtr> mgmHandle, const unsigned short p_id); const std::shared_ptr<MetGmHandlePtr> mgmHandle, const unsigned short p_id);
const std::shared_ptr<MetGmGroup3Ptr>& gp3() { return pGp3_; } const std::shared_ptr<MetGmGroup3Ptr>& gp3() { return pGp3_; }
// const std::shared_ptr<MetGmHDTag>& dimTag() { return dimTa g_;} // const std::shared_ptr<MetGmHDTag>& dimTag() { return dimTa g_;}
const unsigned short p_id() const; unsigned short p_id() const;
const int pr() const; int pr() const;
const int pz() const; int pz() const;
const unsigned short hd() const; unsigned short hd() const;
const std::string units() const; std::string units() const;
int set_nt(int nt); int set_nt(int nt);
int set_dt(float dt); int set_dt(float dt);
int set_nz(int nz); int set_nz(int nz);
int set_pz(int pz); int set_pz(int pz);
int set_pr(int pr); int set_pr(int pr);
int set_nx(int nx); int set_nx(int nx);
int set_dx(float dx); int set_dx(float dx);
int set_cx(float cx); int set_cx(float cx);
int set_ny(int ny); int set_ny(int ny);
int set_dy(float dy); int set_dy(float dy);
int set_cy(float cy); int set_cy(float cy);
const unsigned long totalDataSize(); unsigned long totalDataSize();
const unsigned long sliceDataSize(); unsigned long sliceDataSize();
const shared_array<float>& data(); const shared_array<float>& data();
std::shared_ptr<MetGmXTag>& xTag(); std::shared_ptr<MetGmXTag>& xTag();
std::shared_ptr<MetGmYTag>& yTag(); std::shared_ptr<MetGmYTag>& yTag();
std::shared_ptr<MetGmVerticalTag>& zTag(); std::shared_ptr<MetGmVerticalTag>& zTag();
std::shared_ptr<MetGmTimeTag>& tTag(); std::shared_ptr<MetGmTimeTag>& tTag();
void sliceToMetGmLayout(shared_array<float>& slice); void sliceToMetGmLayout(shared_array<float>& slice);
shared_array<float> readDataSlices(size_t pos, size_t numberOfSlices); shared_array<float> readDataSlices(size_t pos, size_t numberOfSlices);
 End of changes. 4 change blocks. 
14 lines changed or deleted 10 lines changed or added

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