Exemplo n.º 1
0
def create_mosaic(images, mosaic):
    """
    Args: 
        images: files to mosaic together
        mosaic: output mosaic filename
    """
    with NamedTemporaryFile() as listfile:
        write_file_list(listfile, [image.proj.cub for image in images])
        listfile.flush()

        isis.automos(
            fromlist = listfile.name,
            mosaic   = mosaic
        )
Exemplo n.º 2
0
def create_mosaic(subname):
    os.system('ls '+subname+'*.proj.cub '+ subname+'*.proj.cub > proj.lis')
    isis.automos(fromlist=proj.lis, mosaic=subname+'.mos.cub')
    os.system('rm -f proj.lis') # CLEAN UP: there is a better way to run this
    pass