View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

“Image(s) are not two dimensional”!

cosmologist wrote on Dec 30, 2011

When I run apall for my images I get the warnning:

Warning: Image(s) are not two dimensional (ignoring higher dimensions)

How can my image be of higher dimensions ?!

Thanks!

Mike Fitzpatrick wrote on Dec 30, 2011

Use IMHEAD to check the dimensions of an image, and note that a size such as "[1024,1024,1]" is technically considered a 3-D image. You can use image sections such as "[*,*,1]" to pass in a true 2-D section, or IMCOPY it out to a new image.

cosmologist wrote on Dec 30, 2011

But the header doesn't show any higher dimentions:

CCDSEC = '[15:2055,56:820]'
BIASSEC = '[1:2041,1:765]'

Mike Fitzpatrick wrote on Dec 30, 2011

I meant to look at the output of IMHEAD such as with


cl> imhead dev$pix
dev$pix[512,512][short]: m51  B  600s


where this says the image is 512x512. You could also do something like

cl> hselect foo.fits i_naxis yes


to simply print the number of axes in the image. What you've shown are simple keywords in the header, this doesn't actually say how big the image is.

Last post on Dec 30, 2011