[Thread Prev][Thread Next][Index]
Re: [ferret_users] How to display depth values when using /nolab
On 19 Mar 10, at 12:50 AM, Chaojiao.Sun@xxxxxxxx wrote:
I would like to show the depth value of my lat-lon sections in a
title or a label, but use /nolab to suppress all other information.
What is a simple way to do this?
You don't give very much information about your grid, but suppose you
have an (x,y,z) grid of a variable TEMP. Then:
define symbol zplot 450 ! to plot at 450m depth
shade/nolab/lev=($zplot) temp
! ....... put a centered label 0.5 inches above the plot box
label/nou `($ppl$xlen)/2` `($ppl$ylen)+.5` 0 0 .2 Map of TEMP at
($zplot) meters
Of course you can do this by hand (i.e. just put your depth value in
these commands directly), but defining the symbol ZPLOT lets you make
a script that ensures that the label matches the plot command. That
is, put the above commands into a simple script:
cat > tempmap.jnl
define symbol zplot $1 ! to plot at passed argument $1
shade/nolab/lev=($zplot) temp
! ....... put a centered label 0.5 inches above the plot box
label/nou `($ppl$xlen)/2` `($ppl$ylen)+.5` 0 0 .2 Map of TEMP at
($zplot) meters
Ctl-d
Now, in Ferret:
go tempmap 450
Or even simpler:
cat > tempmap.jnl
shade/nolab/lev=$1 temp
! ....... put a centered label 0.5 inches above the plot box
label/nou `($ppl$xlen)/2` `($ppl$ylen)+.5` 0 0 .2 Map of TEMP at $1
meters
Ctl-d
BK
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Privacy Policy | Disclaimer | Accessibility Statement