[Thread Prev][Thread Next][Index]

Re: colouring land

You can color the whole field with a "land" color, then shade or fill
over it with your data:

let land=x[g=sst]+y[g=sst]
palette brown					
shade/nokey land
palette default					! or whatever you like
fill/over/lev=(1,30,1,-1)dark(5,30,5)/key sst	! set contour levels

It may be useful to define -100 as a blank value first:

set variable/bad=-100 sst

See section 26.10, set variable. Applies to variables read in
using file or use. This will leave the land blank.

Another way to do this is to explicitly make a variable that has a value
only where there is no sst:

let land2 = if sst then (-1.e34) else 1
shade land

Billy K

> I have just managed to shade a map of the globe showing SST's, however, as 
> the input data has assigned land the value of -100, the key which comes 
> with the plot is very skewed. All land is purple which ferret recognises 
> to be at a temperature of -100, while the ocean temperature values are 
> obviously much higher.
> I just want to know how land could be set as one colour by default,  
> so that it doesn't appear on the key,(and presumably the key would then 
> alter itself to a higher resolution?)

[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement