source: XIOS/trunk/src/node/reorder_domain.hpp @ 2250

Last change on this file since 2250 was 1457, checked in by ymipsl, 6 years ago

Add new domain filter : reorder_domain
Reoder the data along the global domain but works only for rectilinear domain

  • invert_lat : invert the latitute axis
  • shift_lon_fraction : shift the longitude axis of a fration of global size
  • lon_min/lon_max : fixe the range of longitude value (ex : -180:180 or 0:360)

YM

File size: 1.9 KB
Line 
1#ifndef __XIOS_CReorderDomain__
2#define __XIOS_CReorderDomain__
3
4/// xios headers ///
5#include "xios_spl.hpp"
6#include "attribute_enum.hpp"
7#include "attribute_enum_impl.hpp"
8#include "attribute_array.hpp"
9#include "declare_attribute.hpp"
10#include "object_template.hpp"
11#include "group_factory.hpp"
12#include "declare_group.hpp"
13#include "transformation.hpp"
14#include "domain.hpp"
15
16namespace xios {
17  /// ////////////////////// Déclarations ////////////////////// ///
18  class CReorderDomainGroup;
19  class CReorderDomainAttributes;
20  class CReorderDomain;
21  class CDomain;
22
23  ///--------------------------------------------------------------
24
25  // Declare/Define CReorderDomainAttribute
26  BEGIN_DECLARE_ATTRIBUTE_MAP(CReorderDomain)
27#include "reorder_domain_attribute.conf"
28  END_DECLARE_ATTRIBUTE_MAP(CReorderDomain)
29
30  ///--------------------------------------------------------------
31  /*!
32    \class CReorderDomain
33    This class describes reorder_domain in xml file.
34  */
35  class CReorderDomain
36    : public CObjectTemplate<CReorderDomain>
37    , public CReorderDomainAttributes
38    , public CTransformation<CDomain>
39  {
40    public :
41      typedef CObjectTemplate<CReorderDomain> SuperClass;
42      typedef CReorderDomainAttributes SuperClassAttribute;
43
44    public :
45      /// Constructeurs ///
46      CReorderDomain(void);
47      explicit CReorderDomain(const StdString& id);
48
49      /// Destructeur ///
50      virtual ~CReorderDomain(void);
51
52      virtual void checkValid(CDomain* domainSrc);
53
54      /// Accesseurs statiques ///
55      static StdString GetName(void);
56      static StdString GetDefName(void);
57      static ENodeType GetType(void);
58    private:
59      static bool registerTrans();
60      static CTransformation<CDomain>* create(const StdString& id, xml::CXMLNode* node);
61      static bool _dummyRegistered;
62  }; // class CReorderDomain
63
64  DECLARE_GROUP(CReorderDomain);
65} // namespace xios
66
67#endif // __XIOS_CReorderDomain__
Note: See TracBrowser for help on using the repository browser.