\cancel mode verify ! split_z.jnl ! 10/95 - based on a script submitted by Joachim Dengg ! Description: make a CONTOUR,SHADE, or FILL plot with a split vertical axis ! producing a "magnified" view of the near-surface waters ! usage: $1 $2 $3 $4 $5 $6 $7 ! yes? GO split_z command qualifs var top mid bottom split ! $1 - the plot command (SHADE,FILL or CONT) (default, "FILL") ! $2 - qualifiers to the plot command - /LEVELS and /PALETTE (default, none) ! $3 - the variable to be plotted (use quotation marks if it contains commas) ! $4 - the depth at the top of the plot (default=0) ! $5 - the depth at the split point of the plot (default=1000) ! $6 - the depth at the bottom of the plot (default=5000) ! $7 - the fractio of the page given to the upper viewport (default=0.33) ! example: ! yes? SET DATA levitus_climatology ! yes? SET WINDOW/ASPECT=1 ! yes? go split_z FILL "/lev=(0,4,.5)(0,30,2)" "temp[X=160W,Y=45S:45N]" 0 500 4000 0.4 ! Note 1: a taller, thinner window looks nicer ... ! yes? SET WINDOW/ASPECT=1 ! Note 2: this procedure will not work in a viewport since it uses viewports ! set default values and check for argument errors define symbol cmnd $1"FILL" define symbol quals $2"set_up" define symbol var $3"