1
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2
!.IDENTIFICATION plotcol.prg
3
!.PURPOSE MIDAS procedure to plot a column of an image
4
! execute as @ plotcol par1 [par2] [par3] [par4]
7
! par2 = line number (defaulted to 1)
8
! par3 = 1st point,last point on the line (defaulted to 1,npix)
9
! this parameters is read in automatic scaling mode only
10
! par4 = sc_x,sc_y,off_x,off_y (defaults device filling)
12
! par4 = line type in overplot mode (OVERPLOT/IMA)
15
!.VERSION RHW 861221, 870502, 891119, 910903, 920224
17
! -----------------------------------------------------------------------
19
define/param p1 ? IMA "Enter image:" ! frame
20
define/param p2 @1 ! column number
22
if plrstat(1) .ne. 0.0 .and. plrstat(2) .ne. 0.0 then
23
define/param p3 MANUAL C
26
if p3(1:1) .eq. "M" then
27
write/out "*** FATAL: X axis not manually set; use SET/GRAPHICS"
32
write/keyw in_a {p1} ! frame
33
write/keyw inputc {p3} ! start and end coord.
35
if mid$cmnd(1:1) .eq. "P" then ! PLOT/COLUMN
36
define/param p4 0.,0.,-999,-999 NUM
37
@ plscoff.prg_o {p4} ! get the scales and offsets
41
define/param p4 0.0 NUM
42
write/keyw inputr/r/1/1 {p4}
43
define/param p5 {plistat(5)} NUM
44
define/local itype/i/1/1 {plistat(5)}
50
write/keyw plcdata/c/1/60 {p1} ! name of data
51
write/keyw plcdata/c/61/20 "FRAME " ! type of data structure