- Timestamp:
- Nov 27, 2018, 10:04:16 PM (5 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 2d56c04
- Parents:
- e0e99a5
- Location:
- source/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/python/_config.py
r3946de5 rd8785f8 31 31 32 32 QUEUES_LIST = ['ecgate', 'cca', 'ccb'] 33 34 # up-to-date available maximum level numbers at ECMWF, 05.10.2018 35 MAX_LEVEL_LIST = [16, 19, 31, 40, 50, 60, 62, 91, 137] 33 36 34 37 # ------------------------------------------------------------------------------ -
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.