Show quoted text> From my reading of the configure() code, it doesn't do that; it simply
> opens the file, slurps in the header, and closes it. writehdr() does
> need write access, but configure() seems not to.
Basically if it can't open the file in readwrite mode during the
configure() stage, it won't be able to do it during writehdr() either.
Since in all cases I'm interested in I'm going to be updating the header
it makes sense to fall over as soon as possible if the file can't be
written to...
I've added an "Open file in READONLY mode" hash option to the list of
things To Do for version 2.3.
I'm happy to accept patches if you want to fix this yourself, although
any patch must preserve the current functionality as is, if you want
your patch rolled back in it should add an additional hash option when
creating an new Astro::FITS::Header::CFITSIO object. It should also
cleanly disallow calls to writehdr().
Alasdair.