Skip to content
Snippets Groups Projects
Commit 6bfd53bb authored by Michael Blaschek's avatar Michael Blaschek :bicyclist:
Browse files

eccodes table changed, setting grib2 messes up variables, dirty fix

parent fa0281af
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment