Changeset 4d3b052 in flex_extract.git
- Timestamp:
- Dec 7, 2018, 3:33:46 PM (5 years ago)
- Branches:
- master, ctbto, dev
- Children:
- a4531f1
- Parents:
- c274d9a
- Location:
- source/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/python/classes/ControlFile.py
rc274d9a r4d3b052 150 150 self.public = 0 151 151 self.ecapi = None 152 self.purefc = 0 152 153 self.rrint = 0 153 154 154 155 self.logicals = ['gauss', 'omega', 'omegadiff', 'eta', 'etadiff', 155 156 'dpdeta', 'cwc', 'wrf', 'grib2flexpart', 'ecstorage', 156 'ectrans', 'debug', 'request', 'public', 'rrint'] 157 'ectrans', 'debug', 'request', 'public', 'purefc', 158 'rrint'] 157 159 158 160 self.__read_controlfile__() … … 479 481 self.accmaxstep='12' 480 482 483 self.purefc = check_purefc(self.type) 484 481 485 self.grid = check_grid(self.grid) 482 486 -
source/python/mods/checks.py
rd2febd4 r4d3b052 155 155 return 156 156 157 158 def check_purefc(type): 159 '''Check for a pure forecast mode. 160 161 Parameters 162 ---------- 163 type : :obj:`list` of :obj:`string` 164 List of field types. 165 166 Return 167 ------ 168 True or False: 169 True if pure forecasts are to be retrieved. False if there are 170 analysis fields in between. 171 ''' 172 173 if 'AN' not in type and '4V' not in type: 174 # pure forecast 175 return True 176 177 return False 178 179 157 180 def check_(): 158 181 '''
Note: See TracChangeset
for help on using the changeset viewer.