source: XIOS/dev/branch_yushan/src/io/netCdf_cf_constant.hpp @ 1079

Last change on this file since 1079 was 1079, checked in by yushan, 5 years ago

backup modification

File size: 1.3 KB
Line 
1#ifndef __XIOS_INETCDF4_IMPL__
2#define __XIOS_INETCDF4_IMPL__
3
4#include "inetcdf4.hpp"
5#include "netCdfInterface.hpp"
6
7namespace xios
8{
9const StdString CFLatUnits[] = {"degrees_north", "degree_north", "degree_N", "degrees_N", "degreeN", "degreesN"};
10const StdString CFLonUnits[] = {"degrees_east", "degree_east", "degree_E", "degrees_E", "degreeE", "degreesE"};
11
12struct CCFKeywords
13{
14  static const StdString XIOS_CF_units;
15  static const StdString XIOS_CF_standard_name;
16  static const StdString XIOS_CF_coordinates;
17  static const StdString XIOS_CF_bounds;
18};
19
20const StdString CCFKeywords::XIOS_CF_units("units");
21const StdString CCFKeywords::XIOS_CF_standard_name("standard_name");
22const StdString CCFKeywords::XIOS_CF_coordinates("coordinates");
23const StdString CCFKeywords::XIOS_CF_bounds("bounds");
24
25struct CCFConvention
26{
27  static const std::set<StdString> XIOS_CF_Latitude_units;
28  static const std::set<StdString> XIOS_CF_Longitude_units;
29
30  // #pragma omp threadprivate(XIOS_CF_Latitude_units, XIOS_CF_Longitude_units)
31
32private:
33  CCFConvention();
34};
35
36const std::set<StdString> CCFConvention::XIOS_CF_Latitude_units(CFLatUnits, CFLatUnits+sizeof(CFLatUnits)/sizeof(CFLatUnits[0]));
37const std::set<StdString> CCFConvention::XIOS_CF_Longitude_units(CFLonUnits, CFLonUnits+sizeof(CFLonUnits)/sizeof(CFLonUnits[0]));
38
39} // namespace xios
40
41#endif //__XIOS_INETCDF4_IMPL__
Note: See TracBrowser for help on using the repository browser.