View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

DS9 vs. ximtool, and BUS error problems

gcardonav wrote on May 25, 2010

Hi guys:

I posted about this before, but I am not sure where else to go.
My first question is what is the main difference between ximtool and DS9 ? I am asking because for my research I could use DS9 or ximtool, so the friendlier the program the better for a rookie like me.

My second question is about an error I am getting with either ximtool or ds9. I am trying to display a simple fits image and still getting the same error all the time
ccdred> display Dark.fits 1
ERROR: bus error
ccdred> imstat Dark.fits 
#               IMAGE      NPIX      MEAN    STDDEV       MIN       MAX
ERROR: bus error
ccdred> implot Dark.fits 
ERROR: bus error
ccdred> imexam Dark.fits 
ERROR: bus error
     called as: `imexamine (input=Dark.fits)'
ccdred>

This is with either DS9 or ximtool. Could this be a problem with the installation.

Last a simple question, is there an x11 or iraf command to open ds9 as we open ximtool
ximtool &
I appreciate all the help,

Gus

Mike Fitzpatrick wrote on May 25, 2010

A 'bus error' is fairly generic and I've looked at your image from the early posting and didn't see a problem. We can start to rule out problems in your data by testing to see whether those same command work on the dev$pix test image. If so, then try

cl> imcopy dev$pix foo.fits


and repeat on the 'foo.fits' image to see whether it's something about your installation or just FITS files in general. TO do any more I'd need to know your OS and IRAF versions. If it were any kind of installation problem then it would be something along the lines of having the wrong binaries installed, obviously the CL works and the binaries are being found.

As for the second question, if you installed the commandline version of DS9 and put it in some place like /usr/local/bin then the same

ds9 &


command should work. If this is a Mac and you installed the DS9.app version then try

open -a ds9

gcardonav wrote on May 25, 2010

Hi:

Well it seems that my problem was due to installation. I got scisoft from my tech at school, and it comes with iraf. I am now able to run everything but one. Is there anything special for me to run implot, I been trying by either typing
ecl>implot trial.fits
but I get nothing. I am able to run imstat, imexam, but when I try to use the different tools in imexam, again I get nothing. Well not nothing but a bunch of letters and numbers that make no sense. Any idea why this is.

Thanks for the time and help,

Gus

Mike Fitzpatrick wrote on May 25, 2010

See e.g. http://iraf.net/phpBB2/viewtopic.php?t=88319

gcardonav wrote on May 25, 2010

Thank you that fixed that problem, but it seems that with the scisoft I am still getting a problem running iraf commands. When I run zerocombine I get this error. Once again is a bus error problem. I am getting the same issue with darkcombine and flatcombine. Any idea what it could be ?


            outtype="real"\noffsets="none"\nmasktype="none"\n
            maskvalue=0.\nblank=0.\nscale="none"\nzero="none"\n
            weight="no"\nstatsec=""\nlthreshold=INDEF\nhthreshold=INDEF\n
            nlow=1\nnhigh=1\nnkeep=1\nmclip=yes\nlsigma=2.5\nhsigma=2.5\n
            rdnoise="9.1"\ngain="1.3"\nsnoise="0."\nsigscale=0.1\n
            pclip=-0.5\ngrow=0\nmode="ql"\n$nargs=1\n
        --------------------------------
        ----- task combine - line 17 (INSPECT) -----
      17     521+6:     inspect         instrument
      17     527+3:     end
        ----- task combine - line 18 (INSPECT) -----
      18     521+5:     inspect         logfile
      18     526+3:     end
        ----- task combine - line 19 (INSPECT) -----
      19     521+5:     inspect         verbose
      19     526+3:     end

May 27 18:26: IMCOMBINE
  combine = average, scale = none, zero = none, weight = none
  reject = crreject, mclip = yes, nkeep = 1
  rdnoise = 9.1, gain = 1.3, snoise = 0., hsigma = 2.5
  blank = 0.
                Images 
  DARK_Prompt5_09_02_09_282288__001.fits
  DARK_Prompt5_09_02_09_282288__002.fits
  DARK_Prompt5_09_02_09_282288__003.fits
  DARK_Prompt5_09_02_09_282288__004.fits
  DARK_Prompt5_09_02_09_282288__005.fits
  DARK_Prompt5_09_02_09_282288__006.fits
  DARK_Prompt5_09_02_09_282288__007.fits
  DARK_Prompt5_09_02_09_282288__008.fits
  DARK_Prompt5_09_02_09_282288__009.fits
  DARK_Prompt5_09_02_09_282288__010.fits
  DARK_Prompt5_09_02_09_282288__011.fits
  DARK_Prompt5_09_02_09_282288__012.fits
  DARK_Prompt5_09_02_09_282288__013.fits
  DARK_Prompt5_09_02_09_282288__014.fits
  DARK_Prompt5_09_02_09_282288__015.fits
  DARK_Prompt5_09_02_09_282288__016.fits
  DARK_Prompt5_09_02_09_282288__017.fits
  DARK_Prompt5_09_02_09_282288__018.fits
  DARK_Prompt5_09_02_09_282288__019.fits
  DARK_Prompt5_09_02_09_282288__020.fits

  Output image = Zero, ncombine = 20
        ----- task combine - line 20 (CALL) -----
      20     521+5:     call            error
      20     526+6:     pushconst       501
      20     532+4:     posargset       0
      20     536+9:     pushconst       `bus error'
      20     545+4:     posargset       1
      20     549+3:     exec
        ----- exec builtin error : line 20 -----
        ----- disconnect noaobin$x_ccdred.e -----
ERROR: bus error
cl_error: abort=1  trace=1  flpr=1
cl_error: code=501 do_err=1 errtype=1/1 task='zerocombine'
  "pclip=pclip, grow=0)"
     line 47: ccdred$zerocombine.cl
     called as: `zerocombine (mode=h)'

BTW I have a MacBook Pro running with snow leopard, with X11. Sorry for all these questions but I really want to get this down to work properly.

Gus

Mike Fitzpatrick wrote on May 25, 2010

It's probably related to whatever the earlier problem was, but this time affecting the NOAO package binaries (which are in a different directory). If what you got was an older version of SciSoft then I'd suggest trying a newer version (see http://web.mac.com/npirzkal/Scisoft/Scisoft.html) or just install from the release files on this site (see the download link above).

gcardonav wrote on May 25, 2010

Well I uninstall the old scisoft and I am preparing to install the new one. What I don't see are any instructions when it comes to tools like ximtool or xgterm. Should I delete these from my computer as well, or is there any file that I need to change for these two.

Gus

Mike Fitzpatrick wrote on May 25, 2010

I don't know if Scisoft comes with the X11IRAF tools, but if what you have works there's no point in deleting them.

Last post on May 25, 2010