[Thread Prev][Thread Next][Index]
Re: [ferret_users] labels : number format
Hi Tony,
You have to request for that "precision" like :
label/nouser `($ppl$xlen)`, `-1.25`, 0, 0, 0.12, "@ACaverage = `moy,p=-2`"
Note the p=-2 within the grave accents.
Please see Ch3 Sec3.1. "Special calculations using embedded expressions"
in Ferret userguide.
Here is an example
use coads_climatology
fill/l=1/x=0:150/y=0:80 sst
let moy = 21.123456789
label 65,70,-1,0,0.12 "@ACaverage = `moy,p=-1`"
label 65,65,-1,0,0.12 "@ACaverage = `moy,p=-2`"
label 65,60,-1,0,0.12 "@ACaverage = `moy,p=-3`"
label 65,55,-1,0,0.12 "@ACaverage = `moy,p=-4`"
label 65,50,-1,0,0.12 "@ACaverage = `moy,p=-5`"
label 65,55,-1,0,0.12 "@ACaverage = `moy,p=-4`"
label 65,45,-1,0,0.12 "@ACaverage = `moy,p=-6`"
Hope this helps,
Jaison
On Tue, 19 Sep 2006, Tony Jolibois wrote:
> Hi all,
>
> I have a question on number format : I want to add a label on a plot
> with the averaged value of the variable :
> ...
> let moy = var[x=$lonmin:$lonmax@AVE,y=$latmin:$latmax@AVE,z=$depth,t=
> $time]
> label/nouser `($ppl$xlen)`, `-1.25`, 0, 0, 0.12, "@ACaverage = `moy`"
> ...
> Is there a way to format the `moy` in order to have the same number
> format (like 21.68 and not 21.6859652, always xx.xx and not xx.xxxx).
>
> Thanks in advance for your contribution,
> Tony
>
>
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement