Changeset d139f3e in flex_extract.git


Ignore:
Timestamp:
Oct 25, 2022, 9:12:34 PM (18 months ago)
Author:
Anne Tipka <anne.tipka@…>
Branches:
dev
Children:
b8037ed
Parents:
12bedfd
Message:

in operational mode, we can not retrieve additional day for flux disaggregation, stick to end date

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Source/Python/Mods/get_mars_data.py

    r6a9dbfd rd139f3e  
    194194
    195195    The API selected depends on availability and the data set to be retrieved.
    196     The CDS API is used for ERA5 data, no matter whether the user is a 
    197     member-state or a public user. 
     196    The CDS API is used for ERA5 data, no matter whether the user is a
     197    member-state or a public user.
    198198    ECMWF WebAPI is used for all other available datasets.
    199199
     
    298298    if c.purefc and fluxes and c.maxstep < 24:
    299299        start = start - timedelta(days=1)
    300         end = end + timedelta(days=1)
     300        if not c.oper:
     301                end = end + timedelta(days=1)
    301302
    302303    if not c.purefc and fluxes and not c.basetime == 0:
    303304        start = start - timedelta(days=1)
    304         end = end + timedelta(days=1)
     305        if not c.oper:
     306                end = end + timedelta(days=1)
    305307
    306308    # if we have non-flux forecast data starting at 18 UTC
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG