[PYTHON MATRIX-SIG] Efficient data reading

Earl Spillar spillar@uwyo.edu
Tue, 5 Mar 96 21:59:45 -0700


Gentlepeople:

I'm going to implement some astronomical image processing stuff 

using the Matrix extensions.  I think it's a perfect application for 

Python-  I need to perform arithmatic on 2MB numerical arrays quickly and 

efficiently, while dealing with some simple variables associated with
each array.  I could post more details if there is interest-

Anyway, the question is how to most efficiently read in data already
written to disk in a standard format (FITS).  I   know how to parse
the headers, its  the 2 MB data arrays I'm worried about.  I'm thinking about 

reading the data using the array module, and feeding the result of that to the
Numerical module. Is that reasonably efficient?  It seems like I'll have 2  
copies floating around for a moment. Is there another mechanism
in the Numerical module that I'm missing?  


Thanks for any help- this stuff looks great, and answers needs I've had 

for some time!

Earl Spillar
spillar@uwyo.edu

=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================