From 5ee57bc5da7b0cf56ffe7ade8a8c7a185121b8a7 Mon Sep 17 00:00:00 2001 From: John Halley Gotway Date: Mon, 13 Jun 2022 12:17:13 -0600 Subject: [PATCH] Per #2180, define new constant functions for converting between meters, kilometers, feet, and kilofeet. --- met/data/config/ConfigConstants | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/met/data/config/ConfigConstants b/met/data/config/ConfigConstants index 8cbbeef1e9..c28b13ec28 100644 --- a/met/data/config/ConfigConstants +++ b/met/data/config/ConfigConstants @@ -35,6 +35,13 @@ F_to_K(t) = C_to_K(F_to_C(t)); MM_to_IN(x) = x / 25.4; IN_to_MM(x) = x * 25.4; +M_to_FT(x) = x * 3.28084; +FT_to_M(x) = x / 3.28084; +M_to_KFT(x) = M_to_FT(x) / 1000.0; +KFT_to_M(x) = FT_to_M(x * 1000.0); +KM_to_KFT(x) = M_to_KFT(1000.0 * x); +KFT_to_KM(x) = KFT_to_M(x) / 1000.0; + PA_to_HPA(p) = p / 100.0; HPA_to_PA(p) = p * 100.0; PA_to_MB(p) = PA_to_HPA(p);