[782] | 1 | #ifndef __XIOS_INETCDF4_IMPL__ |
---|
| 2 | #define __XIOS_INETCDF4_IMPL__ |
---|
| 3 | |
---|
| 4 | #include "inetcdf4.hpp" |
---|
| 5 | #include "netCdfInterface.hpp" |
---|
| 6 | |
---|
| 7 | namespace xios |
---|
| 8 | { |
---|
| 9 | const StdString CFLatUnits[] = {"degrees_north", "degree_north", "degree_N", "degrees_N", "degreeN", "degreesN"}; |
---|
| 10 | const StdString CFLonUnits[] = {"degrees_east", "degree_east", "degree_E", "degrees_E", "degreeE", "degreesE"}; |
---|
| 11 | |
---|
| 12 | struct 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; |
---|
[1079] | 18 | }; |
---|
[1072] | 19 | |
---|
[782] | 20 | const StdString CCFKeywords::XIOS_CF_units("units"); |
---|
| 21 | const StdString CCFKeywords::XIOS_CF_standard_name("standard_name"); |
---|
| 22 | const StdString CCFKeywords::XIOS_CF_coordinates("coordinates"); |
---|
| 23 | const StdString CCFKeywords::XIOS_CF_bounds("bounds"); |
---|
| 24 | |
---|
| 25 | struct CCFConvention |
---|
| 26 | { |
---|
| 27 | static const std::set<StdString> XIOS_CF_Latitude_units; |
---|
| 28 | static const std::set<StdString> XIOS_CF_Longitude_units; |
---|
| 29 | |
---|
[1095] | 30 | // #pragma omp threadprivate(XIOS_CF_Latitude_units, XIOS_CF_Longitude_units) |
---|
| 31 | |
---|
[782] | 32 | private: |
---|
| 33 | CCFConvention(); |
---|
| 34 | }; |
---|
| 35 | |
---|
| 36 | const std::set<StdString> CCFConvention::XIOS_CF_Latitude_units(CFLatUnits, CFLatUnits+sizeof(CFLatUnits)/sizeof(CFLatUnits[0])); |
---|
| 37 | const 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__ |
---|