1 /*
2   This file is part of CDO. CDO is a collection of Operators to manipulate and analyse Climate model Data.
3 
4   Author: Uwe Schulzweida
5 
6 */
7 #ifndef STDNAMETABLE_H
8 #define STDNAMETABLE_H
9 
10 enum stdnameid
11 {
12   air_pressure,
13   pressure_thickness,
14   surface_geopotential,
15   geopotential,
16   air_temperature,
17   specific_humidity,
18   surface_air_pressure,
19   air_pressure_at_sea_level,
20   geopotential_height,
21   geometric_height_at_full_level_center,
22   geometric_height_at_half_level_center
23 };
24 
25 int var_echamcode(int varid);
26 const char *var_name(int varid);
27 const char *var_stdname(int varid);
28 const char *var_units(int varid);
29 
30 int echamcode_from_stdname(const char *stdname);
31 
32 struct gribcode_t
33 {
34   int geopot = 0;
35   int temp = 0;
36   int hum = 0;
37   int ps = 0;
38   int lsp = 0;
39   int gheight = 0;
40   int wind = 0;
41   int uwind = 0;
42   int vwind = 0;
43 };
44 
45 enum class ModelMode
46 {
47   UNDEF,
48   ECHAM,
49   WMO,
50   HIRLAM
51 };
52 
53 void echam_gribcodes(gribcode_t *gribcodes);
54 void wmo_gribcodes(gribcode_t *gribcodes);
55 void hirlam_harmonie_gribcodes(gribcode_t *gribcodes);
56 
57 #endif
58