|
Dear IRAF -I am trying to run a script that
1) takes a test snap
2) does an offset
3) repeats
4) gets out of the loop when you change nexpo to be .gt. 1I would like the test snap to use the (just) previous
value for exptime that I gave it, but instead it
keeps using the initial value.(I've disabled the actual offsetting command below)
# NB - this procedure script must be registered with:
# task $q5 = /home/lrs/astronomer/ICE/scripts/q5.clprocedure q5 (expo,iz1,iz2)real expo
int iz1
int iz2begin
real exp1
int jz1,jz2,tv.disp.z1,tv.disp.z2
exp1 = expo
test.nexpo = 1
test.exptime = exp1
jz1 = iz1
jz2 = iz2
tv.disp.z1 = jz1
tv.disp.z2 = jz2
clear
# amode
test(nexpo=1,imagetyp="object",exptime=exp1)
tv.disp(image="test.fits",frame=1,zscale=no,zrange=no)
beep
print (" ")
print (" Set nexpo to 2 to end sequence:")
while ( test.nexpo == 1 ) {
clear
# mkoffx4
test(nexpo=1,imagetyp="object")
#
#** here is the problem: it keeps using the initial expo value
# say 10 seconds, as the default for exptime; I want it to use
# the value that I last gave it for exptime; I want the new
# value to become the next default, so if 20 seconds is a better
# time, I don't want it to keep asking
# Exposure time (seconds) (0.:16777.215) (10.): 20 but instead
# Exposure time (seconds) (0.:16777.215) (20.):
#
tv.disp(image="test.fits",frame=1,zscale=no,zrange=no)
beep
print (" ")
print (" Set nexpo to 2 to end sequence:")
}
end
thanksJohn
|