Welcome to iraf.net Friday, April 26 2024 @ 08:41 PM GMT
sscibell |
09/06/2015 08:07PM (Read 1023 times)
|
|
|
Status: offline
Registered: 09/02/2015
Posts: 10
|
Hello,
Is it possible to automate a cursor command in imexam so it can be incorporated into a script? It seems that you can do this if you give image x and y positions and then the key stroke.
However, I am trying to determine the y-location of a continuum by taking a vertical cut along a column that lies roughly in the middle of two sii lines and fitting a gaussian to it. Is there a way to automate a task like this instead of having to go into the image each time and typing the 'k' key?
If so is it possible to store the plot with the cut and the fit somewhere?
Thanks!
-SS
|
|
|
|
fitz |
09/10/2015 04:23PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
Many of the IMEXAM commands have counterparts in other tasks which can be called directly (e.g. radial profiles are both a command in IMEXAM and a separate task, photometry, etc). If you're really dealing with the image then perhaps the 'p' keystroke in IMPLOT would do? Or maybe SPLOT (or the BPLOT batch version)?
See "cl\$this->_split2($m[0]) help cursors" for an explanation of how to setup a cursor input command to drive a task more automatically. The thing to remember about IMEXAM, though, is that it takes both graphics cursor and image cursor input, and uses the 'g' and 'i' keys respectively to switch between the two modes. To save the plot metacode you could use ":.write " or ":.snap eps" (to save postscript as the file sgiXXXX.eps in the current directory. Whether you can save details of the fit depends on the command/task used and what is written to the log file, see the help page for details.
I'm having a hard time picturing what this image looks like and what you are doing, but I hope this helps.
|
|
|
|
| |
|
Content generated in: 0.11 seconds |
|