Changeset b9ce98c in flex_extract.git for Source/Python/Classes/EcFlexpart.py


Ignore:
Timestamp:
Oct 22, 2022, 10:33:00 PM (19 months ago)
Author:
Anne Tipka <anne.tipka@…>
Branches:
dev
Children:
6a9dbfd
Parents:
7c4bd59
Message:

added CONTROL file option for grib compression type / set packingType parameter in grib messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Source/Python/Classes/EcFlexpart.py

    r2c3c135 rb9ce98c  
    19021902                                   'FILES FAILED!')
    19031903
     1904            if c.compression.lower() != 'grid_simple':
     1905                execute_subprocess(['grib_set', '-r', '-s',
     1906                                    'packingType=' + c.compression,
     1907                                    ofile, ofile + '_2'],
     1908                                   error_msg='GRIB COMPRESSION FAILED!')
     1909
     1910                execute_subprocess(['mv', ofile + '_2', ofile],
     1911                                   error_msg='RENAMING FOR NEW GRIB COMPRESSION '
     1912                                             'FILES FAILED!')
     1913
    19041914            if c.ectrans and _config.FLAG_ON_ECMWFSERVER:
    19051915                execute_subprocess(['ectrans', '-overwrite', '-gateway',
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG