1
! @(#)tutsplit.prg 19.1 (ESO-DMD) 02/25/03 14:09:12
2
! +++++++++++++++++++++++++++++++++++++++++++++++++++++++
4
! procedure tutsplit.prg to implement TUTORIAL/SPLIT
5
! K. Banse 910322, 911011, 920428, 980525, 990804
7
! +++++++++++++++++++++++++++++++++++++++++++++++++++++++
9
DEFINE/param P1 0 ? "0: Local data/Auto"
10
DEFINE/LOCAL OPTION/I/1/1 0
12
IF P1(1:4) .NE. "AUTO" THEN
13
IF P1 .EQ. "+" P1 = "0"
14
WRITE/KEYW OPTION/I/1/1 {P1}
18
! we have no split screen, but can create different display windows
20
DEFINE/LOCAL COPFLA/I/1/1 {OPTION}
22
WRITE/OUT "There is no inherent split screen capability on this workstation."
23
WRITE/OUT "But we can create and use different display windows."
24
WRITE/OUT "We'll show you how..."
26
WRITE/OUT "We assume that the" "default display window is already"-
28
WRITE/OUT "Let's load a nice Lookup Table"
32
WRITE/OUT "Now let's create more display windows and load images into them"
36
indisk/fits MID_TEST:spiral.fits middumma.bdf >Null
37
indisk/fits MID_TEST:ccd.fits middummb.bdf >Null
38
indisk/fits MID_TEST:sombrero.fits middummc.bdf >Null
40
create/display 1 400,400,0,450 1,400,400 0
42
WRITE/OUT "This command created a display with a single channel and no overlay"
43
WRITE/OUT "Now load the copied image file"
47
create/display 2 340,520,760,280 2,340,520 1
49
WRITE/OUT "Since the CCD images have dimension 337*520 we create the display"
50
WRITE/OUT "accordingly. We also use an overlay channel."
51
WRITE/OUT "Display 2 is now the active display and all commands refer to it"
52
WRITE/OUT LOAD/image &b
55
WRITE/OUT "Let's pick up some cursor values."
56
WRITE/OUT "Since the pixel size is so tiny, we'll use a zoomed cursor window"
57
WRITE/OUT create/zoom_window 2 400,400,360,440
58
create/zoom_window 2 400,400,360,440
59
WRITE/OUT get/cursor ? ? ? ? w,4
60
get/cursor ? ? ? ? w,4
62
WRITE/OUT "Now let's return to the default display, display 0 "
63
WRITE/OUT "We use assign/display to make display 0 the active one"
70
IF P1(1:4) .EQ. "AUTO" THEN
75
WRITE/OUT "To get rid of all the windows, use reset/display "
76
WRITE/OUT End of TUTORIAL/SPLIT...