From 9259c4870daca5b4a0b874ec621ce8e207045b31 Mon Sep 17 00:00:00 2001 From: Chris Marsh Date: Wed, 11 Dec 2024 22:00:19 -0600 Subject: [PATCH] missing file --- src/timeseries/CF_names.hpp | 54 +++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 src/timeseries/CF_names.hpp diff --git a/src/timeseries/CF_names.hpp b/src/timeseries/CF_names.hpp new file mode 100644 index 00000000..c5e79661 --- /dev/null +++ b/src/timeseries/CF_names.hpp @@ -0,0 +1,54 @@ +// +// Canadian Hydrological Model - The Canadian Hydrological Model (CHM) is a novel +// modular unstructured mesh based approach for hydrological modelling +// Copyright (C) 2018 Christopher Marsh +// +// This file is part of Canadian Hydrological Model. +// +// Canadian Hydrological Model is free software: you can redistribute it and/or +// modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Canadian Hydrological Model is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Canadian Hydrological Model. If not, see +// . +// + +#pragma once + +#include +#include +#include + +// This maps netCDF CF names to/from internal CHM names +// The bimap does not support duplicate keys so only supports the current mapping +namespace CF_name_mapping +{ + // two way bimap association + typedef boost::bimap _t_cf_bimap; + inline const _t_cf_bimap standard_names = boost::assign::list_of<_t_cf_bimap::relation> + ("t", "air_temperature") + ("rh", "relative_humidity") + ("t_lapse_rate","air_temperature_lapse_rate") + ("vw_dir", "wind_from_direction") + ("U_R", "wind_speed") + ("press", "surface_air_pressure") + // ("Qli", "downwelling_longwave_flux_in_air") + // ("Qli", "downwelling_longwave_flux") + // ("Qli", "surface_downwelling_longwave_flux_in_air") + ("Qli", "surface_downwelling_longwave_flux") + ("Qsi", "surface_downwelling_shortwave_flux") + // ("Qsi", "surface_downwelling_shortwave_flux_in_air") + // ("Qsi", "downwelling_shortwave_flux") + // ("Qsi", "downwelling_shortwave_flux_in_air") + ("p", "precipitation_amount"); + + +} \ No newline at end of file