[Thread Prev][Thread Next][Index]

Re: [ferret_users] explicitly set contour levels



Hi Zatuch,

Sounds like you need to use the shakey command. Have a look at this answer from Jaison Kurian to a similar question:

http://www.pmel.noaa.gov/maillists/tmap/ferret_users/fu_2006/msg00583.html

Essentially the SHAKEY command has this syntax:

SHAKEY do_key, orient, klab_siz, klab_inc, klab_dig, klab_len, kx_lo, 
          kx_hi, ky_lo, ky_hi 

So, you would have something like this:

shade/lev=(20)(40.38921)(61.97397)(85.69467)(112.7769)(144.959)(184.8746)/set  your_data   !note the 'set' command
ppl shakey , , , ,-5      !5 decimal places in the labels
ppl shade          

Three things:

1. You might want to play with the font size using shakey (argument 3)

2. This will change the decimal places for all the labels (e.g. 20 becomes 20.00000). I don't think it's possible to change the labels individually with shakey, but you could try something using the "label" command. Check out this example by Jaison (again!) for how this could be done:

http://www.pmel.noaa.gov/maillists/tmap/ferret_users/fu_2007/msg00040.html

3. FYI, there are many posts that talk about how to modify the colour bar, as well as lots of information in the online user's guide, where you might find exactly what you're after.

Hope this helps,

Paul



On Feb 12, 2009, at 1:50 PM, Z wrote:

Thank you very much,

This is exactly what I want. However when I tried "shade/lev=(20)(40.38921)(61.97397)(85.69467)(112.7769)(144.959)(184.8746)", it was automatically rounded off to "20,40.4,62,85.7,113,145,185" on the colourbar.

How could I set the significance digits for the values appearing beside the colorbar?

Zatuch


On Thu, Feb 12, 2009 at 2:44 PM, Paul Young <Paul.J.Young@xxxxxxxx> wrote:
Hi Zatuch,

You need to put brackets around each individual level. E.g., for what you want:

lev=(20)(40)(60)(100)(150)(250)(750)(1750)

You could also have something like:

lev=(20,60,20)(100)(150)(250)(750)(1750)

i.e. including a (lo,hi,delta) _expression_ as well. But, in your case, that's not really worth it.

P



On Feb 12, 2009, at 12:22 PM, z z wrote:

Hello, Ferret Users,

Is there a way to explicitly set the contour levels, such as (20,40,60,100,150,250,750,1750)?  Because it's unevenly spaced, the qualifier "/LEVELS=(lo, hi, delta)" does not work for this situation. Could anyone give me a help? Thank r>


-----
Paul Young

Chemistry and /div>
Chemical Sciences Division
NOAA Earth System Research Laboratory
325 Broadway R/CSD8
Boulder CO 80305-3328
USA

Tel:   +1 303-497-4711
Fax:   +1 303-497-5686




-----
Paul Young

Chemistry and Climate Processes
Chemical Sciences Division
NOAA Earth System Research Laboratory
325 Broadway R/CSD8
Boulder CO 80305-3328
USA

Tel:   +1 303-497-4711
Fax:   +1 303-497-5686


[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement