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 

mkstars on PSF

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



Joined: 09 Jan 2009
Posts: 19

PostPosted: Mon Mar 12, 2012 7:47 pm    Post subject: mkstars on PSF Reply with quote

In PSF in the daophot package, there's a field called mkstars. The help file says it is supposed to "Mark the selected or deleted psf stars on the image display ?". Enabling it does absolutely nothing, which is a shame, because it sounds like it would improve my work. What else do I need to enable to get this to run while interactively selecting PSF stars?


I'm running a Scisoft IRAF on 10.6.8 through an xgterm in the vanilla x11 which comes with my Mac, my version of DAOPHOT says May00 at the top whenever I open a help file. IRAF seems to be otherwise capable of scribbling on my ds9-- running tvmark interactively adds a mark when I hit the "a" button (as it should).
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Tue May 01, 2012 10:12 pm    Post subject: Reply with quote

Sorry, this was overlooked. Please post back if you're still having problems.
Back to top
View user's profile Send private message
azangari



Joined: 09 Jan 2009
Posts: 19

PostPosted: Fri Jun 15, 2012 3:11 pm    Post subject: Reply with quote

Yes, this still doesn't work (I just got a new set of data-- 80 new images. yay!).

I'm running ``released version 2.14'' on a macbook pro.
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Thu Jun 21, 2012 7:38 pm    Post subject: Reply with quote

The 'mkstars' parameter is available in the PSF and PSTSELECT tasks only, all you should need to do is turn it on. It also appears to only work when an image display is available, is this running before you start the task? Are you able to run Example 1 of the PSF help page (which uses the parameter)?
Back to top
View user's profile Send private message
azangari



Joined: 09 Jan 2009
Posts: 19

PostPosted: Thu Jun 21, 2012 10:05 pm    Post subject: Reply with quote

I ran example 1 for the first time and it seems to work in the sense that I can create a model psf using dev$ypix and the three stars that the help file recommends. But there's nothing that makes the psf stars I select get marked on the image.

What do you mean by "when an image display is available, is this running before you start the task?" How would I check this?
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Thu Jun 21, 2012 11:35 pm    Post subject: Reply with quote

If I run the example I see the stars marked in a (very small) red cross, as expected, using either XImtool or DS9 as the display server.

In the past there have been issues with DS9 releases not properly handling IRAF image displays so you might try getting the latest version to rule this out (although, it generally breaks everything). You might also try a "gflush" command after you exit the task to flush the graphics streams. Otherwise, if this is a very large image and you are zoomed out, do you see the marker when you zoom all the way into the star (i.e. the marker is drawn in pixel units, not screen units)??
Back to top
View user's profile Send private message
azangari



Joined: 09 Jan 2009
Posts: 19

PostPosted: Mon Jun 25, 2012 4:34 pm    Post subject: Reply with quote

Got it! I have more questions.

First, what I had to fix to get it to work: The help file example psf statement has display=imdr, which is something I did not have set (or know what it did) when I was psfing images in the past. So I can set it at the bottom of this file or in the daophot master menu. It seems setting display=imdr* also makes the ubiquitous and ignorable "Graphics overlay not available for display device" warning go away when I do this too. Go figure. But I still get something that shows up now, even in MY images (okay in the magnifier box in ds9). But it works! Thanks!

Here's what I want to know:

Originally, the display variable in psf is set to read form the daophot master file. In the master package for daophot, display is set to stdimage. What does that do? Is it something I want to change for the whole package. In my login.cl I have a command that sets stdimage to imt2048 so I can see my entire big images. Is that the same thing?

Thanks!

*I did more searches for imdr and there's an imdb, imdg, and imdy which promise different colored crosses, but I still get red if I try the others. Since red is a color that shows up well against black, white and in between, I don't actually care about this bug.
Back to top
View user's profile Send private message
fitz
Site Admin


Joined: 30 Sep 2005
Posts: 3255
Location: Tucson

PostPosted: Mon Jun 25, 2012 5:40 pm    Post subject: Reply with quote

Quote:
Originally, the display variable in psf is set to read form the daophot master file. In the master package for daophot, display is set to stdimage. What does that do? Is it something I want to change for the whole package. In my login.cl I have a command that sets stdimage to imt2048 so I can see my entire big images. Is that the same thing?


The DAOPHOT package parameters (what you call the 'master file') are a means of setting common values for the package rather than repeating them for each task. In the case of display, the 'stdimage' value refers to the environment variable 'stdimage' which is used to set the frame buffer size. You can use the command GDEVICES to get a listing of the available sizes and then set stdimage appropriately (or the daophot..display param to the haardwired value).

In the case of the 'imd' overlay names, these refer to dev$graphcap device entries that specify an overlay device color, this probably isn't appropriate for a general setting since you would want the image display size to be the same as that used when reading the cursor (the IMD device is mapped at 8192x8192 by default).


Quote:
I did more searches for imdr and there's an imdb, imdg, and imdy which promise different colored crosses, but I still get red if I try the others. Since red is a color that shows up well against black, white and in between, I don't actually care about this bug.


I verified that DS9 (at least the version I'm using) draws in multiple colors and that DAOPHOT doesn't hardwire the value, but it's always possible this is a DS9 bug. Do you get colors doing:

Code:

    cl> display dev$pix 1 fill+
    cl> contour dev$pix dev=imdg fill+ label-
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 1.02 seconds