(filename, filepath, satname)
return fn
Creates filepath + filename for all the bands belonging to the same image.
    
    KV WRL 2018

    Arguments:
    -----------
    filename: str
        name of the downloaded satellite image as found in the metadata
    filepath: str or list of str
        contains the filepath(s) to the folder(s) containing the satellite images
    satname: str
        short name of the satellite mission       
        
    Returns:    
    -----------
    fn: str or list of str
        contains the filepath + filenames to access the satellite image
Creates filepath + filename for all the bands belonging to the same image.
    
    KV WRL 2018
Creates filepath + filename for all the bands belonging to the same image . KV WRL 2018
def get_filenames(filename, filepath, satname):
    """
    Creates filepath + filename for all the bands belonging to the same image.
    
    KV WRL 2018

    Arguments:
    -----------
    filename: str
        name of the downloaded satellite image as found in the metadata
    filepath: str or list of str
        contains the filepath(s) to the folder(s) containing the satellite images
    satname: str
        short name of the satellite mission       
        
    Returns:    
    -----------
    fn: str or list of str
        contains the filepath + filenames to access the satellite image
        
    """     
    
    if satname == 'L5':
        fn = os.path.join(filepath, filename)
    if satname == 'L7' or satname == 'L8':
        filename_ms = filename.replace('pan','ms')
        fn = [os.path.join(filepath[0], filename),
              os.path.join(filepath[1], filename_ms)]
    if satname == 'S2':
        filename20 = filename.replace('10m','20m')
        filename60 = filename.replace('10m','60m')
        fn = [os.path.join(filepath[0], filename),
              os.path.join(filepath[1], filename20),
              os.path.join(filepath[2], filename60)]
        
    return fn
def get_filenames ( filename , filepath , satname ) : if satname == 'L5' : fn = os . path . join ( filepath , filename ) if satname == 'L7' or satname == 'L8' : filename_ms = filename . replace ( 'pan' , 'ms' ) fn = [ os . path . join ( filepath [ 0 ] , filename ) , os . path . join ( filepath [ 1 ] , filename_ms ) ] if satname == 'S2' : filename20 = filename . replace ( '10m' , '20m' ) filename60 = filename . replace ( '10m' , '60m' ) fn = [ os . path . join ( filepath [ 0 ] , filename ) , os . path . join ( filepath [ 1 ] , filename20 ) , os . path . join ( filepath [ 2 ] , filename60 ) ] return fn