Changeset 45b99e6 in flex_extract.git for source/python/mods
- Timestamp:
- Feb 15, 2019, 3:48:31 PM (5 years ago)
- Branches:
- master, ctbto, dev
- Children:
- b9f1214
- Parents:
- ae2756e
- Location:
- source/python/mods
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/python/mods/get_mars_data.py
rd4696e0 r45b99e6 209 209 210 210 211 def check_dates_for_nonflux_fc_times(types, times): 212 ''' 213 ''' 214 for ty, ti in zip(types,times): 215 if ty.upper() == 'FC' and int(ti) == 18: 216 return True 217 return False 218 219 211 220 def mk_dates(c, fluxes): 212 221 '''Prepares start and end date depending on flux or non flux data. … … 258 267 start = start - timedelta(days=1) 259 268 end = end + timedelta(days=1) 269 270 # if we have non-flux forecast data starting at 18 UTC 271 # we need to start retrieving data one day in advance 272 if not fluxes and check_dates_for_nonflux_fc_times(c.type, c.time): 273 start = start - timedelta(days=1) 260 274 261 275 return start, end, chunk -
source/python/mods/prepare_flexpart.py
rd4696e0 r45b99e6 177 177 flexpart = EcFlexpart(c, fluxes=False) 178 178 flexpart.create(inputfiles, c) 179 if c.stream.lower() == 'elda': 180 flexpart.calc_extra_elda(os.path.join(c.inputdir, c.prefix)) 179 181 flexpart.process_output(c) 180 182
Note: See TracChangeset
for help on using the changeset viewer.