Status: offline
Registered: 08/10/2010
Posts: 3
|
Hi, I have a problem when I'm using the noao/digi/dao/allstar-task.
I'm created a shell-script, what generated a command-file for allstar, based on an imexam log-file(containing FWHM, sigma etc... data).
For example it is a line of this command-file: allstar image=NGC6834-051Vmw.fits photfile=default psfimage=default allstarf=default rejfile=default subimage=default fwhmpsf=5.0 sigma=9.4 datamin=161 function=auto varorde=2 psfrad=12.5 fitrad=7.5 sannulu=12.5 wsannulu=4If the allstar task is working, only every tenth lines are carried out and I don't understand why? :shock:
If the command file contains eight line, lesser than ten, only the first line is carried out.
I'm used the phot task with similar method, then it worked.
Any suggestions? I'm using version of IRAF V2.14.Thanks, Emma
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
If you are running the command using redirection, e.g.[code:1:bbf3f0793b] cl < myscript [/code:1:bbf3f0793b]The likely what's happening is that parameter prompts are being responded to by the next line in the input script. Unless you turn off the daophot.verify parameter some of the parameters will always be prompted for, and some string parameters (e.g. in the DATAPARS or DAOPARS pset) that don't have values might also prompt. You can avoid the latter by explicitly setting the value to a NULL string, e.g. with 'airmass=""' where the double-quotes define the NULL string rather than leave an empty parameter.You might also look at the CL script guide under the Docs link to see about making this a CL script, however the caution against redirection still applies unless you write a procedure script to process your files. Is there some reason this is a shell script?
|
Status: offline
Registered: 08/10/2010
Posts: 3
|
Hi!
This is my shell-script (run_allstar.sh, and I'm running this ./run_allstar.sh):[code:1:efe76f8278]
#!/bin/bashawk '{print "allstar", "image="$1, "photfile=default", \
"psfimage=default", "allstarf=default", "rejfile=default", \
"subimage=default", "fwhmpsf="$4, "sigma="$3, "datamin="$2-7*$3, \
"function=auto", "varorde="2, "psfrad="2.5*$4, "fitrad="1.5*$4, \
"sannulu="2.5*$4, "wsannulu="4}' imex.pars >>allstar.cl
[/code:1:efe76f8278]
what generates a cl-file. Some lines from imex.pars:[code:1:efe76f8278]NGC6834-001Vmw.fits 831.5 18.1 6.1
NGC6834-003Vmw.fits 657.6 14.7 5.2
NGC6834-004Vmw.fits 556.1 14.2 7.9
NGC6834-005Vmw.fits 414.4 13.3 7.2
NGC6834-006Vmw.fits 368.5 12.1 6.9
NGC6834-007Vmw.fits 338.3 12.1 6.0
NGC6834-008Vmw.fits 314.9 12.0 8.5
NGC6834-009Vmw.fits 295.1 12.0 6.5
NGC6834-010Vmw.fits 277.1 10.8 5.0
[/code:1:efe76f8278]
|