overscan in ccdproc
hanin wrote on Mar 28, 2008
Hello,
I would like to ask about overscan correction in task ccdproc. How to verbose the fitting result for all the images? As far as I know, this can be done using ":vshow [file]" command while in interactive mode. My question is how to do that in non-interactive mode (running ccdproc for many images).
Thanks.
I would like to ask about overscan correction in task ccdproc. How to verbose the fitting result for all the images? As far as I know, this can be done using ":vshow [file]" command while in interactive mode. My question is how to do that in non-interactive mode (running ccdproc for many images).
Thanks.
Francisco Valdes wrote on Mar 28, 2008
This was not designed into CCDPROC. However, with the IRAF flexibility to redirect cursor input, graphics output, and standard in and out, you can accomplish this as follows:
The idea is that CCDPROC is run interactively but the cursor input is from a file, text output is thrown away, and graphics are thrown away.
The first part shows how you create a cursor input file. There needs to be one pair of lines for each image in you input list. You will see this is that you enter when you have a cursor in interactive graphics mode.
The second command sets the graphics input for any task in CCDRED, specifically for CCDPROC.
The last command is a little complicated. You can modify this as desired. The print statement being piped into CCDPROC is to answer YES to the prompt about fitting interactively. If you leave this off you can interactively type YES at the prompt and then everything else will be non-interactive. The first redirection sends the query about fitting to the dummy file "dev$null" which is like a trash. If you don't include this you will get a line on the terminal but otherwise it doesn't matter. The last redirection sends the graphics output to the trash. Again, if you don't include this it will simply flash the overscan fit graphs to the screen.
You might want to read
Yours,
Frank Valdes
ccdred> type cur.dat
:vshow vshow.dat
q
:vshow vshow.dat
q
:vshow vshow.dat
q
ccdred> ccdred.cursor="cur.dat"
ccdred> print ("YES") | ccdproc test* interactive+ >& dev$null >G dev$null
The idea is that CCDPROC is run interactively but the cursor input is from a file, text output is thrown away, and graphics are thrown away.
The first part shows how you create a cursor input file. There needs to be one pair of lines for each image in you input list. You will see this is that you enter when you have a cursor in interactive graphics mode.
The second command sets the graphics input for any task in CCDRED, specifically for CCDPROC.
The last command is a little complicated. You can modify this as desired. The print statement being piped into CCDPROC is to answer YES to the prompt about fitting interactively. If you leave this off you can interactively type YES at the prompt and then everything else will be non-interactive. The first redirection sends the query about fitting to the dummy file "dev$null" which is like a trash. If you don't include this you will get a line on the terminal but otherwise it doesn't matter. The last redirection sends the graphics output to the trash. Again, if you don't include this it will simply flash the overscan fit graphs to the screen.
You might want to read
phelp cursors
Yours,
Frank Valdes
hanin wrote on Mar 28, 2008
Dear Sir,
thank you for your reply. It works :)
thank you for your reply. It works :)
Last post on Mar 28, 2008