def imsave(filename, data, maxval=None, pam=False):
    try:
        netpbm = NetpbmFile(data, maxval=maxval)
        netpbm.write(filename, pam=pam)
    finally:
        netpbm.close()
Write image data to Netpbm file.
dataset/ETHPy150Open SheffieldML/GPy/GPy/util/netpbmfile.py/imsave