Changeset d8785f8 in flex_extract.git for source/python/classes/ControlFile.py
- Timestamp:
- Nov 27, 2018, 10:04:16 PM (5 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 2d56c04
- Parents:
- e0e99a5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/python/classes/ControlFile.py
r96e1533 rd8785f8 345 345 346 346 # assure consistency of levelist and level 347 # up-to-date available maximum level numbers at ECMWF, 05.10.2018348 max_level_list = [16, 19, 31, 40, 50, 60, 62, 91, 137]349 347 if not self.levelist and not self.level: 350 348 print('Warning: neither levelist nor level \ … … 360 358 361 359 # 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: 363 361 print('ERROR: ') 364 362 print('LEVEL must be the maximum level of a specified ' 365 363 'level list from ECMWF, e.g.') 366 print( '[16, 19, 31, 40, 50, 60, 62, 91 or 137]')364 print(_config.MAX_LEVEL_LIST) 367 365 print('Check parameter "LEVEL" or the max level of "LEVELIST"!') 368 366 sys.exit(1)
Note: See TracChangeset
for help on using the changeset viewer.