View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

2 images in implot

cosmologist wrote on Feb 24, 2011

How can I overplot two images using implot?

For example with splot I can do on the graph window:

:o image_name

Is there something similar for implot?

I tried from the implot help page:

o overplot next vector

but is not what I want....
Any suggestion?

Francisco Valdes wrote on Feb 24, 2011

The steps are:


    1. implot the first image and select the line (or column) you want with colon l or colon c
    2. select the second image with colon i
    3. type the key 'o' for overplot
    4. select the matching line/column as in the first step


Let me know if I misunderstood your question.

Frank Valdes

cosmologist wrote on Feb 24, 2011

valdes

The steps are:


    1. implot the first image and select the line (or column) you want with colon l or colon c
    2. select the second image with colon i
    3. type the key 'o' for overplot
    4. select the matching line/column as in the first step


Let me know if I misunderstood your question.

Frank Valdes


After step 2 I press "Enter", but nothing happens! I get to the initial image again...

Francisco Valdes wrote on Feb 24, 2011

I should have said "colon i <image name>". Note I am writing colon to avoid the smilely interpretation (smile). the command is reallly something like

:i abc.fits


If you only do the 'i' then it does think you mean the current image.

Frank

cosmologist wrote on Feb 24, 2011

valdes

I should have said "colon i <image name>". Note I am writing colon to avoid the smilely interpretation (smile). the command is reallly something like

:i abc.fits


If you only do the 'i' then it does think you mean the current image.

Frank


Yes, that's what I did, I don't know why it is not working :(

Francisco Valdes wrote on Feb 24, 2011

Hmm...

Do you see the cursor and do you see the colon command being typed? I am wondering if there is a "click-to-focus" problem where you are not really typing into the task. This seems unlikely. Oh ?? If the image you are overplotting is at a different count level then you might not see anything. When you overplot it does not automatically rescale to show you both. So you can use the :y command to set the scale or, if the second image has a bigger dynamic range that covers the first image then reverse the order of the images. There is no way to get the overplot to automatically scale so you see both at once.

You can check if this is happening by not typing 'o' before the line/column for the second image and then you should just see the second image vector.

Frank

cosmologist wrote on Feb 24, 2011

valdes

Hmm...

Do you see the cursor and do you see the colon command being typed? I am wondering if there is a "click-to-focus" problem where you are not really typing into the task. This seems unlikely. Oh ?? If the image you are overplotting is at a different count level then you might not see anything. When you overplot it does not automatically rescale to show you both. So you can use the :y command to set the scale or, if the second image has a bigger dynamic range that covers the first image then reverse the order of the images. There is no way to get the overplot to automatically scale so you see both at once.

You can check if this is happening by not typing 'o' before the line/column for the second image and then you should just see the second image vector.

Frank


what I am plotting is 2 zero*.fits images, I see the :i zero1002.fits being typed in the graph window (with yellow highlight) ... but actually I didn't add the :o part or the :l part, because if I do :i zero1002.fits :l 359 I get the error message: cannot plot zero1002.fits :l 359 !! (or cannot plot zero1002.fits :o)

Francisco Valdes wrote on Feb 24, 2011

The overplot command is not a colon command. It is simply the keystroke o when you have the cursor. So typing literally:


cl> implot image1
:l 100
:i image2
o
:l 100
q
cl>

cosmologist wrote on Feb 24, 2011

valdes

The overplot command is not a colon command. It is simply the keystroke o when you have the cursor. So typing literally:


cl> implot image1
:l 100
:i image2
o
:l 100
q
cl>


Thanks!
It worked :)

Last post on Feb 24, 2011