val =[int(bands[0])-1] + [int(x) -1 for x in values if x != "0"]
        names = [bandNames[i] for i in val]
        return ((" + ").join(names))

    except:
        return ("No names")                    
            
               
                
 
            

files = glob.glob("/home/trashtos/CleaningTiles/SegmentationFinal/tile_row10col20/HCIR/*.txt")

files = grep('/home/trashtos/CleaningTiles/SegmentationFinal/tile_row10col20/HCIR/tile_row10col20_stack_cubic_80_80_4_clumpsexport', files, mask=False)

files = grep('/home/trashtos/CleaningTiles/SegmentationFinal/tile_row10col20/HCIR/tile_row10col20_stack_cubic_80_80_3_clumpsexport', files, mask=False)
files = grep('/home/trashtos/CleaningTiles/SegmentationFinal/tile_row10col20/HCIR/tile_row10col20_stack_cubic_80_80_1', files, mask=False)
files = grep('/home/trashtos/CleaningTiles/SegmentationFinal/tile_row10col20/HCIR/tile_row10col20_stack_cubic_80_80_2', files, mask=False)

#files.append(outVector[:-4] + "_pd.txt")

#files1 = grepInv('/home/trashtos/CleaningTiles/SegmentationFinal/tile_row29col8/tile_row29col8_stack_cubic_80_80_1', files)
#files1 = grepInv('/home/trashtos/CleaningTiles/SegmentationFinal/tile_row29col8/tile_row29col8_stack_cubic_80_80_2', files1)


#files1 = grep('/home/trashtos/CleaningTiles/SegmentationFinal/tile_row29col8/tile_row29col8_stack_cubic_80_80_4', files)

intraVar = np.zeros(len(files))
interVar = np.zeros(len(files))