scripts/download_sen12.py
def _expand_date_range(self):
        '''
        Helper function that expands the date range to the next day_offset level. Used in Dynamic Date Range.
        '''

        original_date = self.current_poly['date_range']['original_date']
        day_offset = self.current_poly['date_range']['day_offset']


        new_offset = self.offset_dict[day_offset]

        start = original_date + DateOffset(days=-day_offset)
        end = original_date + DateOffset(days=day_offset)
        start_date = str(start)[:10]
        end_date = str(end)[:10]

        new_date_range = {
            'start_date': start_date,
            'end_date': end_date,
            'original_date': original_date,
            'day_offset': new_offset
        }

        return new_date_range

        Helper function that expands the date range to the next day_offset level. Used in Dynamic Date Range.
        
Helper function that expands the date range to the next day_offset level. Used in Dynamic Date Range.
Helper function that expands the date range to the next day_offset level . Used in Dynamic Date Range .
def _expand_date_range(self):
        original_date = self.current_poly['date_range']['original_date']
        day_offset = self.current_poly['date_range']['day_offset']
        new_offset = self.offset_dict[day_offset]
        start = original_date + DateOffset(days=-day_offset)
        end = original_date + DateOffset(days=day_offset)
        start_date = str(start)[:10]
        end_date = str(end)[:10]
        new_date_range = {
            'start_date': start_date,
            'end_date': end_date,
            'original_date': original_date,
            'day_offset': new_offset
        }
        return new_date_range
def _expand_date_range ( self ) : original_date = self . current_poly [ 'date_range' ] [ 'original_date' ] day_offset = self . current_poly [ 'date_range' ] [ 'day_offset' ] new_offset = self . offset_dict [ day_offset ] start = original_date + DateOffset ( days = - day_offset ) end = original_date + DateOffset ( days = day_offset ) start_date = str ( start ) [ : 10 ] end_date = str ( end ) [ : 10 ] new_date_range = { 'start_date' : start_date , 'end_date' : end_date , 'original_date' : original_date , 'day_offset' : new_offset } return new_date_range
Helper function that expands the date range to the next day_offset level.
Helper function that expands the date range to the next day_offset level .
'''
        Helper function that expands the date range to the next day_offset level. Used in Dynamic Date Range.
        '''
self