Tuesday, May 23, 2006

No more numarray

Python coding is hardly an auspicious topic on which to start a blog, but everything has to begin somewhere. I've finally fixed my python-based pgplot fits image plotter code to use Numeric and Andrew William's fits.py modules, replacing numarray and the STScI pyfits modules. The step back to Numeric was forced by pyhdf relying on Numeric, but I'm actually quite pleased with how things turned out. The image transpose weirdness I had to use with pyfits and pgplot is gone, so I no longer have to worry about the fortran vs C array order issues (except in pyfits). Its a pity the ST folks couldn't have made pyfits backwards compatible with Numeric, but I guess that is related to the whole Numeric vs numarray split.

Post a Comment