Changeset 53d3b2a in flex_extract.git for Source


Ignore:
Timestamp:
Jan 31, 2020, 12:32:29 PM (4 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
eca358d
Parents:
aad03f2
Message:

added more tests for grib file comparison and removed detected BUGS

File:
1 edited

Legend:

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

    r0f89116 r53d3b2a  
    321321
    322322        '''
     323        if self.purefc:
     324            # need to retrieve forecasts for step 000 in case of pure forecast
     325            steps = '{}/to/{}/by/{}'.format(0, self.accmaxstep, self.dtime)
     326        else:
     327            steps = '{}/to/{}/by/{}'.format(self.dtime,
     328                                            self.accmaxstep,
     329                                            self.dtime)
     330
    323331        self.types[str(self.acctype)] = {'times': str(self.acctime),
    324                                          'steps': '{}/to/{}/by/{}'.format(
    325                                              self.dtime,
    326                                              self.accmaxstep,
    327                                              self.dtime)}
     332                                         'steps': steps}
    328333        return
    329334
     
    781786
    782787                    elif self.basetime == 0:
    783                         retr_param_dict['date'] = \
    784                             datetime.strftime(elimit - t24h, '%Y%m%d')
     788#                        retr_param_dict['date'] = \
     789#                            datetime.strftime(elimit - t24h, '%Y%m%d')
    785790
    786791                        timesave = ''.join(retr_param_dict['time'])
     
    16021607
    16031608            # skip all temporary times
    1604             # which are outside the retrieval period               
     1609            # which are outside the retrieval period
    16051610            if timestamp < start_period or \
    16061611               timestamp > end_period:
    16071612                continue
    1608                
     1613
    16091614
    16101615            # @WRF
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG