Changeset b9ce98c in flex_extract.git


Ignore:
Timestamp:
Oct 22, 2022, 10:33:00 PM (18 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

Location:
Source/Python/Classes
Files:
2 edited

Legend:

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

    r75db9b0 rb9ce98c  
    228228        Switch to select further parameters for retrievment to support
    229229        WRF simulations. Default value is 0.
     230
     231    compression : str
     232        Compression type for grib messages. Standard is "grid_simple".
    230233
    231234    ecfsdir : str
     
    396399        self.cwc = 0
    397400        self.wrf = 0
     401        self.compression = 'grid_simple'
    398402        self.ecfsdir = 'ectmp:/${USER}/econdemand/'
    399403        self.mailfail = ['${USER}']
  • 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