!------------------------------------------------------------------------ ! p_color.map ! Procedure to plot multiple contour maps of spectral line images ! overlaid on the bitmap. ! Global variables defined in DEFINE.GRAPHIC ! Calls p_header.greg (to plot header information) ! and p_levels.greg (to compute automatic contour levels) ! S.Guilloteau 15-Oct-1992 !------------------------------------------------------------------------ on error return ! clear plot def real x2 dx y2 def double xmark ratio def integer m n n1 n2 imark nmap nadd def character cmark*12 def logical do_clean do_dirty do_coverage let do_clean beam_type.eq."CLEAN" let do_dirty beam_type.eq."DIRTY" let do_coverage extra.eq."COVERAGE" ! !create directory N let m int(sqrt((nmap+nadd)*ratio+1)) let n nint(m|ratio) if (m*n.lt.(nmap+nadd)) then let m = m+1 if (m*n.lt.(nmap+nadd)) then let n n+1 endif endif else let n int(sqrt((nmap+nadd)|ratio+1)) let m nint(n*ratio) if (m*n.lt.(nmap+nadd)) then let n = n+1 if (m*n.lt.(nmap+nadd)) then let m m+1 endif endif endif set expand min(6.0|(m+n),1.) let dx (x2-box_xmin)|n|ratio let dx min((y2-box_ymin)|m,dx) let k n1-1 /new integer ! delete /variable mbox nbox ubox define integer mbox nbox /global let mbox m let nbox n define real ubox[5,nbox,mbox] /global for j 1 to m for i 1 to n gtvl\change directory