[AstroPy] Re: functional interface for PyFITS?

William Jon McCann mccannwj at pha.jhu.edu
Tue Mar 22 11:13:53 CST 2005


Nor wrote:
> Default should be to check if foo.fits[2] is a valid filename, read it 
> if it is, otherwise read the second extension of foo.fits.

Goodness, no.  What if foo.fits[2] is a valid filename and you wish to 
read the second extension of foo.fits.  Also, a "valid filename" is 
system dependent.

This convention was a terrible idea to start with and it should not be 
propagated.

A better way to go about this might be to define a "fits://" URI scheme.

Jon



More information about the AstroPy mailing list