Changeset 3ca4c3e in flex_extract.git


Ignore:
Timestamp:
Feb 20, 2022, 3:35:27 PM (2 years ago)
Author:
Anne Tipka <anne.philipp@…>
Branches:
dev
Children:
6857073
Parents:
f0dedeb (diff), e3c679d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

solved merge conflict. merged dev from flexpart.eu with local version

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Run/Control/CONTROL_EA5

    r33a4ccc re3c679d  
    2020PREFIX EA
    2121CWC 1
    22 RRINT 1
    2322ECTRANS 1
  • Source/Python/Classes/MarsRetrieval.py

    rf0dedeb r3ca4c3e  
    505505            newattrs['year'] = date.year
    506506            newattrs['month'] = date.month
    507             newattrs['day'] =  date.day                 
     507            newattrs['day'] =  date.day         
     508 
     509        # need to correct the time apperance for CDS surface field retrievals
     510        if attrs['type'] == 'FC': # for EA5 only flux fields are retrieved as FC type
     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 time
     513            start, end, step = map(int,attrs['step'].split('/')[::2])
     514            newattrs['time'] = [ "{0:0=2d}".format(s) for s in range(0,24,step) ]
     515        elif '/' in attrs['time']: # we expect a list of times separated by /
     516            newattrs['time'] = attrs['time'].split('/')
     517        elif isinstance(attrs['time'], str): # we expect a single time in here
     518            newattrs['time'] = [ attrs['time'] ]
    508519       
    509520        newattrs['product_type'] = 'reanalysis'
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG