From bd43ed1fd979432a73816711eb6c4b29a1736c46 Mon Sep 17 00:00:00 2001 From: Hauke Schulz <43613877+observingClouds@users.noreply.github.com> Date: Sun, 28 Jun 2020 21:49:44 +0200 Subject: [PATCH] \ Bugfix: BUFR: Td correction was not applied --- eurec4a_snd/_helpers.py | 94 ++++++++++++++++++++--------------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/eurec4a_snd/_helpers.py b/eurec4a_snd/_helpers.py index 3a06e35..c92d5a6 100644 --- a/eurec4a_snd/_helpers.py +++ b/eurec4a_snd/_helpers.py @@ -976,53 +976,53 @@ def correct_meteomodem_surface(sounding, bufr_file): """ Correct specific meteo modem soundings """ - d = {'AT2020012512_1.309057.BFR': 21.676335267277707, - 'AT2020012612_1.309057.BFR': 20.299818275809564, - 'AT2020012612_2.309057.BFR': 20.490235079280602, - 'AT2020012618_1.309057.BFR': 20.395027551835543, - 'AT2020012618_2.309057.BFR': 20.72719422108181, - 'AT2020012618_3.309057.BFR': 20.72719422108181, - 'AT2020012618_4.309057.BFR': 20.490235079280602, - 'AT2020012618_5.309057.BFR': 20.961170412362186, - 'AT2020012618_6.309057.BFR': 21.096516728956811, - 'AT2020012700_1.309057.BFR': 21.228696671077643, - 'AT2020012700_2.309057.BFR': 21.645982812790148, - 'AT2020012700_3.309057.BFR': 21.676335267277707, - 'AT2020012800_1.309057.BFR': 22.734527932378281, - 'AT2020012800_2.309057.BFR': np.nan, - 'AT2020020218_1.309057.BFR': 20.631811617269207, - 'AT2020020218_2.309057.BFR': 21.192243399966955, - 'AT2020020300_1.309057.BFR': 23.250129401644031, - 'AT2020020300_2.309057.BFR': 20.770057518368084, - 'AT2020020300_3.309057.BFR': 21.228696671077643, - 'AT2020020300_4.309057.BFR': 21.132797893968846, - 'AT2020020300_5.309057.BFR': 21.594661125167445, - 'AT2020020300_6.309057.BFR': 22.347032338755625, - 'AT2020020300_7.309057.BFR': 21.12715294391278, - 'AT2020020306_1.309057.BFR': 21.16565351341211, - 'AT2020020306_2.309057.BFR': 21.350899212666299, - 'AT2020020306_3.309057.BFR': 21.114158685504709, - 'AT2020020306_4.309057.BFR': 21.047255593956379, - 'AT2020020306_5.309057.BFR': 20.653281422508336, - 'AT2020020306_6.309057.BFR': 20.927958315808677, - 'AT2020020306_7.309057.BFR': 21.357437545602338, - 'AT2020020312_1.309057.BFR': 21.510617824089007, - 'AT2020020312_2.309057.BFR': 21.195165907041719, - 'AT2020020312_3.309057.BFR': np.nan, - 'AT2020020312_4.309057.BFR': 21.000788492386096, - 'AT2020020312_5.309057.BFR': 21.000788492386096, - 'AT2020020312_6.309057.BFR': 21.13786737261098, - 'AT2020020312_7.309057.BFR': 21.877213391027734, - 'AT2020020312_8.309057.BFR': 21.469277211341332, - 'AT2020020318_1.309057.BFR': 21.93987011060981, - 'AT2020020318_3.309057.BFR': 21.543164982699349, - 'AT2020020318_4.309057.BFR': 21.431461248468246, - 'AT2020020318_5.309057.BFR': 21.31908609493534, - 'AT2020021100_1.309057.BFR': 21.534170247830687, - 'AT2020021800_1.309057.BFR': 21.216973566186809, - 'AT2020021800_2.309057.BFR': 21.483871685146806, - 'AT2020021800_4.309057.BFR': 22.123277349708609, - 'AT2020021800_5.309057.BFR': 21.931339923645719} + d = {'ATALANTE_2020012512_1.309057.BFR': 21.676335267277707, + 'ATALANTE_2020012612_1.309057.BFR': 20.299818275809564, + 'ATALANTE_2020012612_2.309057.BFR': 20.490235079280602, + 'ATALANTE_2020012618_1.309057.BFR': 20.395027551835543, + 'ATALANTE_2020012618_2.309057.BFR': 20.72719422108181, + 'ATALANTE_2020012618_3.309057.BFR': 20.72719422108181, + 'ATALANTE_2020012618_4.309057.BFR': 20.490235079280602, + 'ATALANTE_2020012618_5.309057.BFR': 20.961170412362186, + 'ATALANTE_2020012618_6.309057.BFR': 21.096516728956811, + 'ATALANTE_2020012700_1.309057.BFR': 21.228696671077643, + 'ATALANTE_2020012700_2.309057.BFR': 21.645982812790148, + 'ATALANTE_2020012700_3.309057.BFR': 21.676335267277707, + 'ATALANTE_2020012800_1.309057.BFR': 22.734527932378281, + 'ATALANTE_2020012800_2.309057.BFR': np.nan, + 'ATALANTE_2020020218_1.309057.BFR': 20.631811617269207, + 'ATALANTE_2020020218_2.309057.BFR': 21.192243399966955, + 'ATALANTE_2020020300_1.309057.BFR': 23.250129401644031, + 'ATALANTE_2020020300_2.309057.BFR': 20.770057518368084, + 'ATALANTE_2020020300_3.309057.BFR': 21.228696671077643, + 'ATALANTE_2020020300_4.309057.BFR': 21.132797893968846, + 'ATALANTE_2020020300_5.309057.BFR': 21.594661125167445, + 'ATALANTE_2020020300_6.309057.BFR': 22.347032338755625, + 'ATALANTE_2020020300_7.309057.BFR': 21.12715294391278, + 'ATALANTE_2020020306_1.309057.BFR': 21.16565351341211, + 'ATALANTE_2020020306_2.309057.BFR': 21.350899212666299, + 'ATALANTE_2020020306_3.309057.BFR': 21.114158685504709, + 'ATALANTE_2020020306_4.309057.BFR': 21.047255593956379, + 'ATALANTE_2020020306_5.309057.BFR': 20.653281422508336, + 'ATALANTE_2020020306_6.309057.BFR': 20.927958315808677, + 'ATALANTE_2020020306_7.309057.BFR': 21.357437545602338, + 'ATALANTE_2020020312_1.309057.BFR': 21.510617824089007, + 'ATALANTE_2020020312_2.309057.BFR': 21.195165907041719, + 'ATALANTE_2020020312_3.309057.BFR': np.nan, + 'ATALANTE_2020020312_4.309057.BFR': 21.000788492386096, + 'ATALANTE_2020020312_5.309057.BFR': 21.000788492386096, + 'ATALANTE_2020020312_6.309057.BFR': 21.13786737261098, + 'ATALANTE_2020020312_7.309057.BFR': 21.877213391027734, + 'ATALANTE_2020020312_8.309057.BFR': 21.469277211341332, + 'ATALANTE_2020020318_1.309057.BFR': 21.93987011060981, + 'ATALANTE_2020020318_3.309057.BFR': 21.543164982699349, + 'ATALANTE_2020020318_4.309057.BFR': 21.431461248468246, + 'ATALANTE_2020020318_5.309057.BFR': 21.31908609493534, + 'ATALANTE_2020021100_1.309057.BFR': 21.534170247830687, + 'ATALANTE_2020021800_1.309057.BFR': 21.216973566186809, + 'ATALANTE_2020021800_2.309057.BFR': 21.483871685146806, + 'ATALANTE_2020021800_4.309057.BFR': 22.123277349708609, + 'ATALANTE_2020021800_5.309057.BFR': 21.931339923645719} if os.path.basename(bufr_file) in d.keys(): Td_corrected = d[os.path.basename(bufr_file)] print('Correct Td from {} to {}'.format(sounding.dewpoint[0], Td_corrected))