Changeset 6857073 in flex_extract.git for Source/Python/Classes/MarsRetrieval.py
- Timestamp:
- Jul 20, 2022, 10:48:59 AM (22 months ago)
- Branches:
- dev
- Children:
- 81c180c
- Parents:
- 3ca4c3e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Source/Python/Classes/MarsRetrieval.py
r3ca4c3e r6857073 507 507 newattrs['day'] = date.day 508 508 509 # need to correct the time appe rance for CDS surface field retrievals509 # need to correct the time appearance for CDS surface field retrievals 510 510 if attrs['type'] == 'FC': # for EA5 only flux fields are retrieved as FC type 511 511 # need to convert fc start times 06/18 to usual AN times 512 # since the surface fields can only be access through their validity time512 # since the surface fields can only be accessed through their validity time 513 513 start, end, step = map(int,attrs['step'].split('/')[::2]) 514 514 newattrs['time'] = [ "{0:0=2d}".format(s) for s in range(0,24,step) ] 515 515 elif '/' in attrs['time']: # we expect a list of times separated by / 516 516 newattrs['time'] = attrs['time'].split('/') 517 elif isinstance(attrs['time'], str): # we expect a single time inhere517 elif isinstance(attrs['time'], str): # we expect a single time here 518 518 newattrs['time'] = [ attrs['time'] ] 519 519
Note: See TracChangeset
for help on using the changeset viewer.