Skip to content
Snippets Groups Projects
Commit faa0055b authored by Marina Dütsch's avatar Marina Dütsch
Browse files

Merge branch 'dev_eccodes_fix' into 'dev'

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

See merge request flexpart/flex_extract!4
parents fa0281af 6bfd53bb
Branches dev
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