View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

ERROR: Pixel storage file is truncated

Sarah Sweet wrote on Jun 30, 2011

Hello,

I have a data cube of size [25,77,4096], but when I try to use imstat on z>3221 I get ERROR: Pixel storage file is truncated.
imhead tells me that the cube's dimensions are only [25,77,3221]. When I open the cube in other programs however I can see the whole 4096 slices.

Can you please help?

Thanks,
Sarah

Mike Fitzpatrick wrote on Jun 30, 2011

What format is the image in? The message may indeed indicate the file is truncated but if the header actually says the 3rd dimension is only 3221 planes then an attempt to read past that is a real error. What other program did you use to read the cube that saw 4096 planes?

I can't really offer much more without seeing the image. Could you please upload it to the anonftp at ftp://iraf.noao.edu/pub so I can have a look? It would also help to know which platform and IRAF version you are using.

Sarah Sweet wrote on Jun 30, 2011

Hi Fitz,

Never mind, that was just a copy of the file of interest and seems corrupted somehow. The original file is ok.

Thanks anyway!
Sarah

Last post on Jun 30, 2011