Changeset 365c82a in flex_extract.git


Ignore:
Timestamp:
Oct 26, 2022, 11:18:52 AM (18 months ago)
Author:
Anne Tipka <anne.tipka@…>
Branches:
dev
Children:
c62bec0
Parents:
284ae90
Message:

corrected date setting for operational retrieval for basetime 00

Location:
Source/Python
Files:
2 edited

Legend:

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

    r73a8df2 r365c82a  
    786786
    787787                    elif self.basetime == 0:
    788 #                        retr_param_dict['date'] = \
    789 #                            datetime.strftime(elimit - t24h, '%Y%m%d')
    790788
    791789                        timesave = ''.join(retr_param_dict['time'])
     
    815813                                self._mk_targetname(ftype, pk,
    816814                                                    retr_param_dict['date'])
     815
     816                        if ftype.upper() == 'FC' and \
     817                                'acc' not in retr_param_dict['target']:
     818
     819                            retr_param_dict['date'] = \
     820                                datetime.strftime(elimit - t24h, '%Y%m%d')
    817821
    818822                        # ******* start retrievement
  • Source/Python/Mods/get_mars_data.py

    r284ae90 r365c82a  
    293293    chunk = timedelta(days=int(c.date_chunk))
    294294
    295     if c.basetime == 0:  # non-fluxes
     295    if c.basetime == 0 and not fluxes:  # non-fluxes
    296296        start = start - timedelta(days=1)
    297297
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG