scripts/download_sen12.py
def _create_offset_dict(self, offset_array):
        '''
        Helper function that creates an offset dictionary based on an input array

        "offset_array": List containing offset values
        '''

        if type(offset_array) is not list:
            raise ValueError(f'offset_array is a {type(offset_array)}, but it must be a list')

        offset_array.sort()
        off_arr_copy = offset_array.copy() 
        d = {}
        for i, value in enumerate(off_arr_copy):
            if i < len(off_arr_copy) - 1:
                d[value] = off_arr_copy[i+1]

        return d

        Helper function that creates an offset dictionary based on an input array

        "offset_array": List containing offset values
        
Helper function that creates an offset dictionary based on an input array
"offset_array": List containing offset values
Helper function that creates an offset dictionary based on an input array " offset_array " : List containing offset values
def _create_offset_dict(self, offset_array):
        if type(offset_array) is not list:
            raise ValueError(f'offset_array is a {type(offset_array)}, but it must be a list')
        offset_array.sort()
        off_arr_copy = offset_array.copy() 
        d = {}
        for i, value in enumerate(off_arr_copy):
            if i < len(off_arr_copy) - 1:
                d[value] = off_arr_copy[i+1]
        return d
def _create_offset_dict ( self , offset_array ) : if type ( offset_array ) is not list : raise ValueError ( f'offset_array is a {type(offset_array)}, but it must be a list' ) offset_array . sort ( ) off_arr_copy = offset_array . copy ( ) d = { } for i , value in enumerate ( off_arr_copy ) : if i < len ( off_arr_copy ) - 1 : d [ value ] = off_arr_copy [ i + 1 ] return d
Helper function that creates an offset dictionary based on an input array
"offset_array": List containing offset values
Helper function that creates an offset dictionary based on an input array " offset_array " : List containing offset values
'''
        Helper function that creates an offset dictionary based on an input array

        "offset_array": List containing offset values
        '''
self
offset_array