pysilcam/postprocess.py
def silc_to_bmp(directory):
    '''Convert a directory of silc files to bmp images

    Args:
        directory               : path of directory to convert

    '''
    files = [s for s in os.listdir(directory) if s.endswith('.silc')]
    
    for f in files:
        try:
            with open(os.path.join(directory, f), 'rb') as fh:
                im = np.load(fh, allow_pickle=False)
                fout = os.path.splitext(f)[0] + '.bmp'
            outname = os.path.join(directory, fout)
            imo.imwrite(outname, im)
        except:
            logger.warning('{0} failed!'.format(f))
            continue

    logger.info('Done.')
Convert a directory of silc files to bmp images

    Args:
        directory               : path of directory to convert

    
Convert a directory of silc files to bmp images
Convert a directory of silc files to bmp images
def silc_to_bmp(directory):
    files = [s for s in os.listdir(directory) if s.endswith('.silc')]
    for f in files:
        try:
            with open(os.path.join(directory, f), 'rb') as fh:
                im = np.load(fh, allow_pickle=False)
                fout = os.path.splitext(f)[0] + '.bmp'
            outname = os.path.join(directory, fout)
            imo.imwrite(outname, im)
        except:
            logger.warning('{0} failed!'.format(f))
            continue
    logger.info('Done.')
def silc_to_bmp ( directory ) : files = [ s for s in os . listdir ( directory ) if s . endswith ( '.silc' ) ] for f in files : try : with open ( os . path . join ( directory , f ) , 'rb' ) as fh : im = np . load ( fh , allow_pickle = False ) fout = os . path . splitext ( f ) [ 0 ] + '.bmp' outname = os . path . join ( directory , fout ) imo . imwrite ( outname , im ) except : logger . warning ( '{0} failed!' . format ( f ) ) continue logger . info ( 'Done.' )
Convert a directory of silc files to bmp images
Convert a directory of silc files to bmp images
'''Convert a directory of silc files to bmp images

    Args:
        directory               : path of directory to convert

    '''
directory
directory               
path of directory to convert
path of directory to convert