[Thread Prev][Thread Next][Index]

Re: Shade/Levels



Hi Steve,
It looks to me as if you just have an extra end-of-line or a
space in your script, on the "define symbol d1"  command, so the
second grouping is not seen as part of the LEVELS specification

define symbol d1=levels=(-0.00002,-0.000001,0.000002)
(0.000001,0.00002,0.000002)

should have no space or line feed between the sets of parentheses.
It helps to group the different levels specs in quotes for clarity:

define symbol d1=levels="(-0.00002,-0.000001,0.000002)(0.000001,0.00002,0.000002)"

Good luck - Ansley


Steve Cocks wrote:

> Alas, Hello once more
>
> I had been reading through chapter 6 (sec 8.1.1) and the
> custom_contour.jnl tutorial to better manipulate color shade levels when
> plotting my data.  I created a script that would shade convergence LE
> -10E6 and Divergence GE 10E6.  Instead, I keep getting the pesky message
> of "multiple expressions."  The following is a portion of the script I
> am using:
>
> !****************************************************************************
>
> ! Define Symbols for increments of div and region to be analyzed
> define symbol hl = hlimits=120:270:10
> define symbol vl = vlimits=-60:20:10
> define symbol d1=levels=(-0.00002,-0.000001,0.000002)
> (0.000001,0.00002,0.000002)
>
> !******************************************************************************
>
> let band=if(Div[y=@ngd] ge 7) then Div
>
> ! Define a meridional average
>
> fill/set/($hl)/nolab/($d1) band[y=0s:10s@ave,l=13:378@shn:3]
> !01aug99-31jul00
>  !->
> CONTOUR/FILL/set/hlimits=120:270:10/nolab/levels=(-0.00002,-0.000001,0.000002)
> (0.000001,0.00002,0.000002) band[y=0s:10s@ave,l=13:378@shn:3]
>  **ERROR: command syntax: (0.000001,0.00002,0.000002)
> band[y=0s:10s@ave,l=13:378@shn:3]
>           Definition contains multiple expressions
> CONTOUR/FILL/set/hlimits=120:270:10/nolab/levels=(-0.00002,-0.000001,0.000002)
> (0.000001,0.00002,0.000002) band[y=0s:10s@ave,l=13:378@shn:3]
> Command file, command group, or REPEAT execution aborted
>
> What "bird-brained" error have I done now?  Would appreciate any
> comments and two tylenol please!
>
> Scocks
> TAMU

--
Ansley Manke  Pacific Marine Environmental Laboratory  Seattle WA  (206)526-6246




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement