View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Display error

nwj781 wrote on May 08, 2008

In trying to display images to ds9 with the iraf terminal, I've hit a glitch. It only displays a small portion of the image and a tiny portion of the fits header. The resolution is halved and the size is about an eigth of what it should be. Most of the observatory, time and scale information is cleared from the header. Does anyone know where this error may have come from?

Mike Fitzpatrick wrote on May 08, 2008

When displaying from IRAF, the 'stdimage' environment variable is used to define the frame buffer size (the default is 512x512). If you set the DISPLAY task 'fill' parameter the image will be scaled it all of it fits within the frame buffer, otherwise images larger than that will be cropped so only the central 512x512 region is displayed. You can use the GDEVICES command to print out the list of available frame buffers.

If you already reset your stdimage to something larger than the image and you still only see a 512x512 frame buffer, then it probably means you don't have a /usr/local/lib/imtoolrc file installed. This is normally a symlink to $iraf/dev/imtoolrc, you can also just copy $iraf/dev/imtoolrc to $HOME/.imtoolrc and restart DS9 to find it.

As for the headers: displaying from IRAF doesn't send the header to DS9, it sends the path to the file. To see the actual header you'd need to load the image standalone. Note this also means you won't see actual pixel values or WCS readout from DS9 since it doesn't open the image (a longstanding issue that requires a change in DS9 to fix).

-Mike

nwj781 wrote on May 08, 2008

Awesome. Thanks Mike.

nwj781 wrote on May 08, 2008

The problem actually resided in the login.cl file. By changing the image buffer frame size to imt2048 in gedit, the error was corrected.

Last post on May 08, 2008