Changeset d8785f8 in flex_extract.git


Ignore:
Timestamp:
Nov 27, 2018, 10:04:16 PM (5 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
2d56c04
Parents:
e0e99a5
Message:

moved max level list definition to config file

Location:
source/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/python/_config.py

    r3946de5 rd8785f8  
    3131
    3232QUEUES_LIST = ['ecgate', 'cca', 'ccb']
     33
     34# up-to-date available maximum level numbers at ECMWF, 05.10.2018
     35MAX_LEVEL_LIST = [16, 19, 31, 40, 50, 60, 62, 91, 137]
    3336
    3437# ------------------------------------------------------------------------------
  • source/python/classes/ControlFile.py

    r96e1533 rd8785f8  
    345345
    346346        # assure consistency of levelist and level
    347         # up-to-date available maximum level numbers at ECMWF, 05.10.2018
    348         max_level_list = [16, 19, 31, 40, 50, 60, 62, 91, 137]
    349347        if not self.levelist and not self.level:
    350348            print('Warning: neither levelist nor level \
     
    360358
    361359        # check if max level is a valid level
    362         if int(self.level) not in max_level_list:
     360        if int(self.level) not in _config.MAX_LEVEL_LIST:
    363361            print('ERROR: ')
    364362            print('LEVEL must be the maximum level of a specified '
    365363                  'level list from ECMWF, e.g.')
    366             print('[16, 19, 31, 40, 50, 60, 62, 91 or 137]')
     364            print(_config.MAX_LEVEL_LIST)
    367365            print('Check parameter "LEVEL" or the max level of "LEVELIST"!')
    368366            sys.exit(1)
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG