[AstroPy] Moving Ahead with Raw Image Conversion

Wayne Watson sierra_mtnview@sbcglobal....
Wed Apr 15 00:44:44 CDT 2009


Thanks. Particularly interesting was the change reference in zone. I 
wasn't aware of zone.

It appears as though the fromstring never appeared anywhere but there.

pyraf/iraf. All of this is unexplored territory to me. It looks like the 
things I've learned here recently plus those will keep me busy for the 
rest of the year. :-) Having the data files I've been working with 
available now in fits is opening many vistas. Maybe pyraf has some 
overview sampler of what it does?  Since meteor work is my topic, maybe 
they have special capabilites for such images?

I may have to stick closer to home for IP stuff though. That is, the 
users of the s/w may not be able to absorb iraf easily, so it still 
might behoove me to put a IP few features in the program in adding 
analytic capabilities to.

Anne Archibald wrote:
> 2009/4/14 Wayne Watson <sierra_mtnview@sbcglobal.net>:
>   
>> Well, one more question about manipulation.
>>
>> rawim_numpy = numpy.fromfile('sent_internal.raw', dtype='uint8')
>>
>>     
>> ...
>>     
>
> There is, yes, but if what you have is a PIL image, you can make a
> numpy array directly from the underlying memory:
> http://effbot.org/zone/pil-numpy.htm
> http://effbot.org/zone/pil-changes-116.htm
>
> Incidentally, if you want to do image processing on the contents of a
> FITS file, you might try scipy's ndimage tools. They are likely to be
> a better fit to the sort of tasks you want to do than PIL's image
> processing. There may also be more astronomical image processing
> libraries available (pyraf?), I haven't really looked for them.
>
> Anne
>
>   

-- 
           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
              Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet  

           All the neutrons, and protons in the human body occupy
           a cube whose side is 5.52*10**-6 meters (tiny!). That
           adds up to a 150 pound person. It's not a surprise that
           we are mostly space. (Calculation by WTW)
 



More information about the AstroPy mailing list