PIL FITs image decoder

Robert Kern robert.kern at gmail.com
Tue Nov 22 13:50:49 EST 2005


jbrewer wrote:
>>http://www.stsci.edu/resources/software_hardware/pyfits
> 
> I know and love PyFits, but I need to be able to do draw shapes on a
> FITs image (and perhaps some other operations), and I don't believe
> that PyFits allows these kinds of operations.  It might be possible to
> import the data into a numarray object and turn that into something PIL
> can read, though.

If you can bear having two copies in memory, Image.frombuffer()
generally does the trick.

-- 
Robert Kern
robert.kern at gmail.com

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter




More information about the Python-list mailing list