Changeset a676cf7 in flex_extract.git for Source/Python/Mods/get_mars_data.py


Ignore:
Timestamp:
Oct 30, 2022, 1:13:24 AM (18 months ago)
Author:
Anne Tipka <anne.tipka@…>
Branches:
dev
Children:
7271b6f
Parents:
ea754d1
Message:

modifications and adjustments to dates and times for correctly retrieving analysis and forecast data in operational mode

File:
1 edited

Legend:

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

    r365c82a ra676cf7  
    160160    start, end, datechunk = mk_dates(c, fluxes=True)
    161161    do_retrievement(c, server, start, end, datechunk, fluxes=True)
    162 
     162   
    163163    # --------------  non flux data --------------------------------------------
    164164    start, end, datechunk = mk_dates(c, fluxes=False)
     
    293293    chunk = timedelta(days=int(c.date_chunk))
    294294
    295     if c.basetime == 0 and not fluxes:  # non-fluxes
     295    if c.basetime == 0 and not fluxes and not c.purefc:  # non-fluxes
    296296        start = start - timedelta(days=1)
    297297
    298298    if c.purefc and fluxes and c.maxstep < 24:
    299299        start = start - timedelta(days=1)
    300         if not c.oper:
    301             end = end + timedelta(days=1)
     300#        if not c.oper:
     301#            end = end + timedelta(days=1)
    302302
    303303    if not c.purefc and fluxes:
     
    305305        if not c.oper:
    306306            end = end + timedelta(days=1)
    307         elif c.oper and c.basetime == 0:
    308             end = end - timedelta(days=1)
     307#        elif c.oper and c.basetime == 0:
     308#            end = end - timedelta(days=1)
    309309
    310310    # if we have non-flux forecast data starting at 18 UTC
     
    389389
    390390        try:
    391             flexpart.retrieve(server, dates, c.public, c.request, c.inputdir)
     391            flexpart.retrieve(server, dates, c.public, c.purefc, c.request, c.inputdir)
    392392        except IOError:
    393393            my_error('MARS request failed')
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG