From 6bfd53bbe9a572cd74fd1aa79cac0408a8cfe2bb Mon Sep 17 00:00:00 2001 From: MB <michael.blaschek@univie.ac.at> Date: Wed, 12 Mar 2025 14:07:19 +0100 Subject: [PATCH] eccodes table changed, setting grib2 messes up variables, dirty fix --- Source/Python/Classes/EcFlexpart.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Source/Python/Classes/EcFlexpart.py b/Source/Python/Classes/EcFlexpart.py index 488b72d..53ba7e2 100644 --- a/Source/Python/Classes/EcFlexpart.py +++ b/Source/Python/Classes/EcFlexpart.py @@ -1928,14 +1928,15 @@ class EcFlexpart(object): ofile = os.path.join(self.inputdir, ofile) if c.format.lower() == 'grib2': - execute_subprocess(['grib_set', '-s', 'edition=2,' + - 'productDefinitionTemplateNumber=8', - ofile, ofile + '_2'], - error_msg='GRIB2 CONVERSION FAILED!') - - execute_subprocess(['mv', ofile + '_2', ofile], - error_msg='RENAMING FOR NEW GRIB2 FORMAT ' - 'FILES FAILED!') + # execute_subprocess(['grib_set', '-s', 'edition=2,' + + # 'productDefinitionTemplateNumber=8', + # ofile, ofile + '_2'], + # error_msg='GRIB2 CONVERSION FAILED!') + + # execute_subprocess(['mv', ofile + '_2', ofile], + # error_msg='RENAMING FOR NEW GRIB2 FORMAT ' + # 'FILES FAILED!') + print('GRIB2 CONVERSION skipped!') if c.compression.lower() != 'grid_simple': execute_subprocess(['grib_set', '-r', '-s', -- GitLab