Changeset 4d3b052 in flex_extract.git for source/python/mods/checks.py


Ignore:
Timestamp:
Dec 7, 2018, 3:33:46 PM (5 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
a4531f1
Parents:
c274d9a
Message:

introduced a new parameter which defines pure forcast mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/python/mods/checks.py

    rd2febd4 r4d3b052  
    155155    return
    156156
     157
     158def check_purefc(type):
     159    '''Check for a pure forecast mode.
     160
     161    Parameters
     162    ----------
     163    type : :obj:`list` of :obj:`string`
     164        List of field types.
     165
     166    Return
     167    ------
     168    True or False:
     169        True if pure forecasts are to be retrieved. False if there are
     170        analysis fields in between.
     171    '''
     172
     173    if 'AN' not in type and '4V' not in type:
     174        # pure forecast
     175        return True
     176
     177    return False
     178
     179
    157180def check_():
    158181    '''
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG