I tried following your simple example (I already had something similar)
but with no luck. I'm completely stumped as to why this doesn't work.
I even tried manually scaling the data to be in the range 0-255 out of
desperation. The data is definitely contiguous and 32 bit floating
point. At this p
jbrewer wrote:
[I wrote:]
>>If you can bear having two copies in memory, Image.frombuffer()
>>generally does the trick.
>
> What arguments do you pass to this function, and do you flatten the
> array from the FITs image? I this but got garbage out for the image.
The array would have to be cont
>If you can bear having two copies in memory, Image.frombuffer()
>generally does the trick.
Also, does PIL have a contrast / scale option that is similar to zscale
in ds9 or equalize in Image Magick?
Jeremy
--
http://mail.python.org/mailman/listinfo/python-list
>If you can bear having two copies in memory, Image.frombuffer()
>generally does the trick.
What arguments do you pass to this function, and do you flatten the
array from the FITs image? I this but got garbage out for the image.
Jeremy
--
http://mail.python.org/mailman/listinfo/python-list
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
>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 o
jbrewer wrote:
> I'm trying to read in a FITs image file for my research, and I decided
> that writing a file decoder for the Python imaging library would be the
> easiest way to accomplish this for my needs. FITs is a raw data format
> used in astronomy.
http://www.stsci.edu/resources/software_h
"jbrewer" wrote:
> I'm trying to read in a FITs image file for my research, and I decided
> that writing a file decoder for the Python imaging library would be the
> easiest way to accomplish this for my needs. FITs is a raw data format
> used in astronomy.
>
> Anyway, I followed the example in t
I'm trying to read in a FITs image file for my research, and I decided
that writing a file decoder for the Python imaging library would be the
easiest way to accomplish this for my needs. FITs is a raw data format
used in astronomy.
Anyway, I followed the example in the PIL documentation online,