View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Psfmeasure problems

MeganC2 wrote on May 26, 2011

I'm having trouble getting psfmeasure, in the external package nmisc, to work properly. When I try to test run it, the result is as follows:

nmisc> psfmeasure dev$pix
** Select stars to measure with 'm' and finish with 'q'.
** Additional options are '?', 'g', and :show.

PANIC in `/iraf/extern/nmisc/bin.macintel/x_nmisc.e': Write to IPC with no reader
Segmentation fault


I don't think the problem is with nmisc itself, because other tasks (eg newimexamine) work fine, and the image appears interactively in ds9 when I call psfmeasure. I tried running d_trace beforehand, as well as clearing the cache multiple times with flpr, and the result was:

nmisc> psfmeasure dev$pix
        ----- task cl - line 15 (CALL) -----
      15      22+6:     call            psfmeasure
      15      28+8:     pushconst       `dev$pix'
      15      36+4:     indirposset     0
      15      40+3:     exec
        ----- exec external task psfmeasure - line 15 -----
        ----- connect to nmiscbin$x_nmisc.e -----
            psfmeasure\nimages="dev$pix"\ncoords="markall"\n
            wcs="logical"\ndisplay=yes\nframe=1\nlevel=0.5\nsize="FWHM"\n
            beta=INDEF\nscale=1.\nradius=5.\nsbuffer=5.\nswidth=5.\n
            saturation=INDEF\nignore_sat=no\niterations=2\nxcenter=INDEF\n
            ycenter=INDEF\nlogfile="logfile"\nmode="ql"\n$nargs=1\n
        --------------------------------
** Select stars to measure with 'm' and finish with 'q'.
** Additional options are '?', 'g', and :show.
        ----- task psfmeasure - line 4 (INSPECT) -----
       4      46+6:     inspect         imagecur
       4      52+3:     end
        ----- task psfmeasure - line 5 (INSPECT) -----
       5      46+6:     inspect         imagecur
       5      52+3:     end

PANIC in `/iraf/extern/nmisc/bin.macintel/x_nmisc.e': Write to IPC with no reader
Segmentation fault


I admit that I am very new at this, but I am stumped! Any input would be much appreciated.

Mike Fitzpatrick wrote on May 26, 2011

Try using the binaries from

ftp://iraf.noao.edu/iraf/extern-v214/nmisc-bin.macosx.tar.gz

Unpack this file in the /iraf/extern/nmisc directory and then move the contents of the 'bin.macosx' directory to 'bin.macintel'. What I put up before may have been built against the v2.15 system, but since NMISC was ported to 64-bits the segfault is understandable. These are 32-bit PPC binaries but should still run on your system.

Otherwise I can talk you through building the package locally if you tell me what problems you're having.

MeganC2 wrote on May 26, 2011

I tried using the macosx file http://iraf.noao.edu/iraf/ftp/iraf/extern-v214/nmisc000118/nmisc-bin.macosx.tar.gz , but for some reason, unpacking this no longer produces the executables x_nmisc.e and x_imexam.e. Instead, it's producing a bin.macosx executable, which is strange....
I attempted once again to compile the binaries myself, and I followed the directions in the nmisc.readme, first editing /iraf/iraf/unix/hlib/extern.pkg to include the nmisc task and then using

% setenv iraf /iraf/iraf/
% source $iraf/unix/hlib/irafuser.csh 
% setenv IRAFARCH macintel


then I edited the mkpkg file in the nmisc distribution to include a portion regarding macintel architecture (as per step [5] in the readme).

Entering

ecl > mkpkg -p nmisc macintel
ecl > mkpkg -p nmisc


results in


...ld: symbol(s) not found
collect2: ld returned 1 exit status
Warning, mkpkg line 8: module `relink' not found or returned error
move `xx_nmisc.e' to `nmiscbin$x_nmisc.e'
$move: file `xx_nmisc.e' not found
Warning, mkpkg line 34: error moving file xx_nmisc.e
Warning, mkpkg line 9: module `install' not found or returned error
Warning, mkpkg line 3: module `update@src' not found or returned error


And no executables in bin.macintel. I also included "-m32" in XFLAGS and LFLAGS in mkpkg.inc and tried again to make, but got a plethora or errors and warnings, still terminating in

Undefined symbols:
  "_stgpue_", referenced from:
      _imdrcr_ in libds.a(imdrcur.o)
  "_stggee_", referenced from:
      _imdrcr_ in libds.a(imdrcur.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
Warning, mkpkg line 8: module `relink' not found or returned error
move `xx_nmisc.e' to `nmiscbin$x_nmisc.e'
$move: file `xx_nmisc.e' not found
Warning, mkpkg line 34: error moving file xx_nmisc.e
Warning, mkpkg line 9: module `install' not found or returned error
Warning, mkpkg line 3: module `update@src' not found or returned error


and no x_imexam.e or x_nmisc.e to be found!

Thank you so much for all your help!
Megan

Mike Fitzpatrick wrote on May 26, 2011

Let's try again.... I setup a macintel machine running v2.14 and rebuilt the binaries, try downloading

ftp://iraf.noao.edu/iraf/extern-v214/nmisc-bin.macintel.tar.gz

Unpack these in nmisc$bin.macintel/

MeganC2 wrote on May 26, 2011

Thank you so much! Everything seems to be working with nmisc.

Francisco Valdes wrote on May 26, 2011

Without investigating I would comment that psfmeasure started in the nmisc package but has been in the standard system (noao.obsutil) and in mscred
for quite a long time.

Frank Valdes

Last post on May 26, 2011