Submit a Story  :  IRAF Links  :  Past Polls  :  Calendar  :  Advanced Search  
     iraf.net
FAQ
 Forum FAQForum FAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Psfmeasure problems

 
Post new topic   Reply to topic    iraf.net Forum Index -> Applications
View previous topic :: View next topic  
Author Message
MeganC2



Joined: 26 May 2011
Posts: 5

PostPosted: Thu May 26, 2011 10:58 pm    Post subject: Psfmeasure problems Reply with quote

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:

Code:
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:

Code:
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.
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3257
Location: Tucson

PostPosted: Fri May 27, 2011 12:03 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
MeganC2



Joined: 26 May 2011
Posts: 5

PostPosted: Fri May 27, 2011 6:31 pm    Post subject: Reply with quote

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

Code:
% 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

Code:
ecl > mkpkg -p nmisc macintel
ecl > mkpkg -p nmisc


results in

Code:

...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

Code:
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
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3257
Location: Tucson

PostPosted: Fri May 27, 2011 6:57 pm    Post subject: Reply with quote

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/
Back to top
View user's profile Send private message
MeganC2



Joined: 26 May 2011
Posts: 5

PostPosted: Fri May 27, 2011 9:54 pm    Post subject: Reply with quote

Thank you so much! Everything seems to be working with nmisc.
Back to top
View user's profile Send private message
valdes
IRAF Guru


Joined: 11 Nov 2005
Posts: 677

PostPosted: Thu Jun 23, 2011 6:37 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    iraf.net Forum Index -> Applications All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2009 phpBB Group
 Copyright © 2005-2011 iraf.net
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.10 seconds