Changeset 284ae90 in flex_extract.git


Ignore:
Timestamp:
Oct 26, 2022, 10:49:27 AM (18 months ago)
Author:
Anne Tipka <anne.tipka@…>
Branches:
dev
Children:
365c82a
Parents:
73a8df2
Message:

corrected dates and time for operational retrievals for fluxes

File:
1 edited

Legend:

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

    rd139f3e r284ae90  
    293293    chunk = timedelta(days=int(c.date_chunk))
    294294
    295     if c.basetime == 0:
     295    if c.basetime == 0:  # non-fluxes
    296296        start = start - timedelta(days=1)
    297297
     
    299299        start = start - timedelta(days=1)
    300300        if not c.oper:
    301                 end = end + timedelta(days=1)
    302 
    303     if not c.purefc and fluxes and not c.basetime == 0:
     301            end = end + timedelta(days=1)
     302
     303    if not c.purefc and fluxes:
    304304        start = start - timedelta(days=1)
    305305        if not c.oper:
    306                 end = end + timedelta(days=1)
     306            end = end + timedelta(days=1)
     307        elif c.oper and c.basetime == 0:
     308            end = end - timedelta(days=1)
    307309
    308310    # if we have non-flux forecast data starting at 18 UTC
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG