Changeset 6857073 in flex_extract.git for Source/Python/Classes/MarsRetrieval.py


Ignore:
Timestamp:
Jul 20, 2022, 10:48:59 AM (22 months ago)
Author:
Anne Tipka <anne.philipp@…>
Branches:
dev
Children:
81c180c
Parents:
3ca4c3e
Message:

spelling corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Source/Python/Classes/MarsRetrieval.py

    r3ca4c3e r6857073  
    507507            newattrs['day'] =  date.day         
    508508 
    509         # need to correct the time apperance for CDS surface field retrievals
     509        # need to correct the time appearance for CDS surface field retrievals
    510510        if attrs['type'] == 'FC': # for EA5 only flux fields are retrieved as FC type
    511511            # 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
     512            # since the surface fields can only be accessed through their validity time
    513513            start, end, step = map(int,attrs['step'].split('/')[::2])
    514514            newattrs['time'] = [ "{0:0=2d}".format(s) for s in range(0,24,step) ]
    515515        elif '/' in attrs['time']: # we expect a list of times separated by /
    516516            newattrs['time'] = attrs['time'].split('/')
    517         elif isinstance(attrs['time'], str): # we expect a single time in here
     517        elif isinstance(attrs['time'], str): # we expect a single time here
    518518            newattrs['time'] = [ attrs['time'] ]
    519519       
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG