Skip to content

Commit 9259c48

Browse files
committed
missing file
1 parent e8218db commit 9259c48

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

src/timeseries/CF_names.hpp

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
//
2+
// Canadian Hydrological Model - The Canadian Hydrological Model (CHM) is a novel
3+
// modular unstructured mesh based approach for hydrological modelling
4+
// Copyright (C) 2018 Christopher Marsh
5+
//
6+
// This file is part of Canadian Hydrological Model.
7+
//
8+
// Canadian Hydrological Model is free software: you can redistribute it and/or
9+
// modify
10+
// it under the terms of the GNU General Public License as published by
11+
// the Free Software Foundation, either version 3 of the License, or
12+
// (at your option) any later version.
13+
//
14+
// Canadian Hydrological Model is distributed in the hope that it will be useful,
15+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
// GNU General Public License for more details.
18+
//
19+
// You should have received a copy of the GNU General Public License
20+
// along with Canadian Hydrological Model. If not, see
21+
// <http://www.gnu.org/licenses/>.
22+
//
23+
24+
#pragma once
25+
26+
#include <string>
27+
#include <boost/bimap.hpp>
28+
#include <boost/assign.hpp>
29+
30+
// This maps netCDF CF names to/from internal CHM names
31+
// The bimap does not support duplicate keys so only supports the current mapping
32+
namespace CF_name_mapping
33+
{
34+
// two way bimap association
35+
typedef boost::bimap<std::string, std::string> _t_cf_bimap;
36+
inline const _t_cf_bimap standard_names = boost::assign::list_of<_t_cf_bimap::relation>
37+
("t", "air_temperature")
38+
("rh", "relative_humidity")
39+
("t_lapse_rate","air_temperature_lapse_rate")
40+
("vw_dir", "wind_from_direction")
41+
("U_R", "wind_speed")
42+
("press", "surface_air_pressure")
43+
// ("Qli", "downwelling_longwave_flux_in_air")
44+
// ("Qli", "downwelling_longwave_flux")
45+
// ("Qli", "surface_downwelling_longwave_flux_in_air")
46+
("Qli", "surface_downwelling_longwave_flux")
47+
("Qsi", "surface_downwelling_shortwave_flux")
48+
// ("Qsi", "surface_downwelling_shortwave_flux_in_air")
49+
// ("Qsi", "downwelling_shortwave_flux")
50+
// ("Qsi", "downwelling_shortwave_flux_in_air")
51+
("p", "precipitation_amount");
52+
53+
54+
}

0 commit comments

Comments
 (0)