View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

display.frame.p_mode =

Guest wrote on Aug 27, 2010

Dear IRAF helpers,

i am running a very simple script that display images, as they are read
one by one from an input file (see script enclosed). For each new file
read at the display command, the script prompts me for the display
frame. I did put display.frame.p_mode = "h" in the script just before
the display command, but it still prompts me for the frame number. How
can i get read of this prompt ?

Tbanks
Jerome Bouvier

--

Jerome BOUVIER
Laboratoire d'Astrophysique
Observatoire de Grenoble
Universite Joseph Fourier - B.P.53
F-38041 Grenoble Cedex 9

e-mail: Jerome.Bouvier@obs.ujf-grenoble.fr
tel: (33) 04 76 51 47 90
fax: (33) 04 76 44 88 21



#***************
#cinema.cl
#***************
# input file list: name.lis
# display every image in the list in turn

procedure cinema.cl (input_list)

string input_list

begin
string afile
#
#
list = input_list
while (fscan(list, afile) != EOF) {


# I tried this :
display (afile, 1, bpmask="BPM", bpdisplay="none", bpcolors="red", overlay="",ocolors="green", erase=yes, border_erase=no, select_frame=no, repeat=no,fill=yes,zscale=yes, contrast=0.25, zrange=yes, zmask="", nsample=1000,xcenter=0.5, ycenter=0.5, xsize=1., ysize=1., xmag=1., ymag=1., order=0,z1=INDEF, z2=INDEF, ztrans="linear", lutfile="")

# and this :
display.frame.p_mode = "h"
display (afile, frame=1)

# but still prompts for the frame number

print (afile)
imexam
}
#
end


Post generated using Mail2Forum (http://www.mail2forum.com)[/code]

Last post on Aug 27, 2010