Silent APALL
gzhou wrote on Mar 01, 2011
Hi,
I'm trying to write a pyraf script for apall. I have interactive and review turned off when running apall via the script, but can't find a way to remove the prompt
Number of apertures to be found automatically (1):
even though I set the apertures parameter to be 1 in the script.
Here is my parameters for apall, thanks for the help and sorry if there is an obvious answer.
iraf.apall(
input = "rot_" + file_name, \
output = "",\
format = "multispec",\
references = "",\
apertures = 1,\
interactive = 0, \
find = 1,\
recenter = 1,\
resize = 1,\
edit = 0,\
trace = 1,\
fittrace = 0,\
extract = 1,\
extras = 0,\
review = 0,\
line = "INDEF",\
nsum = 10,\
lower = -10.0,\
upper = 10.0,\
b_sample = "-20:-8,8:20",\
b_order = 1,\
b_naverage = -3,\
b_niterate = 0,\
b_low_reject = 3.0,\
b_high_reject = 3.0,\
b_grow = 0.0,\
width = 5.0,\
radius = 10.0,\
threshold = 0.0,\
ylevel = 0.1,\
peak = 1,\
bkg = 1,\
t_nsum = 10,\
t_step = 10,\
t_nlost = 3,\
t_function = "legendre",\
t_order = 3,\
t_low_reject = 3.0,\
t_high_reject = 3.0,\
t_grow = 0.0,\
t_niter = 1,\
background = "fit",\
weights = "variance",\
clean = 1,\
saturation = 64000,\
readnoise = 3.8,\
gain = 0.9)
I'm trying to write a pyraf script for apall. I have interactive and review turned off when running apall via the script, but can't find a way to remove the prompt
Number of apertures to be found automatically (1):
even though I set the apertures parameter to be 1 in the script.
Here is my parameters for apall, thanks for the help and sorry if there is an obvious answer.
iraf.apall(
input = "rot_" + file_name, \
output = "",\
format = "multispec",\
references = "",\
apertures = 1,\
interactive = 0, \
find = 1,\
recenter = 1,\
resize = 1,\
edit = 0,\
trace = 1,\
fittrace = 0,\
extract = 1,\
extras = 0,\
review = 0,\
line = "INDEF",\
nsum = 10,\
lower = -10.0,\
upper = 10.0,\
b_sample = "-20:-8,8:20",\
b_order = 1,\
b_naverage = -3,\
b_niterate = 0,\
b_low_reject = 3.0,\
b_high_reject = 3.0,\
b_grow = 0.0,\
width = 5.0,\
radius = 10.0,\
threshold = 0.0,\
ylevel = 0.1,\
peak = 1,\
bkg = 1,\
t_nsum = 10,\
t_step = 10,\
t_nlost = 3,\
t_function = "legendre",\
t_order = 3,\
t_low_reject = 3.0,\
t_high_reject = 3.0,\
t_grow = 0.0,\
t_niter = 1,\
background = "fit",\
weights = "variance",\
clean = 1,\
saturation = 64000,\
readnoise = 3.8,\
gain = 0.9)
Mike Fitzpatrick wrote on Mar 01, 2011
Try setting the 'nfind' parameter as well.
gzhou wrote on Mar 01, 2011
Ah thank you! that solved it
Last post on Mar 01, 2011