Changeset e446e85 in flex_extract.git
- Timestamp:
- Mar 1, 2019, 10:37:18 PM (5 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 8778c5a
- Parents:
- e811e1a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/python/classes/EcFlexpart.py
r45b99e6 re446e85 1377 1377 ''' 1378 1378 1379 # generate start and end timestamp of the retrieval period 1380 start_period = datetime.strptime(c.start_date + c.time[0], '%Y%m%d%H') 1381 start_period = start_period + timedelta(hours=int(c.step[0])) 1382 end_period = datetime.strptime(c.end_date + c.time[-1], '%Y%m%d%H') 1383 end_period = end_period + timedelta(hours=int(c.step[-1])) 1384 1379 1385 if c.wrf: 1380 1386 table128 = init128(_config.PATH_GRIBTABLE) … … 1442 1448 timestamp += timedelta(hours=int(cstep)) 1443 1449 cdate_hour = datetime.strftime(timestamp, '%Y%m%d%H') 1450 1451 # eliminate all temporary times 1452 # which are outside the retrieval period 1453 if timestamp < start_period or \ 1454 timestamp > end_period: 1455 continue 1444 1456 1445 1457 # if the timestamp is out of basetime start/end date period,
Note: See TracChangeset
for help on using the changeset viewer.