Re: how to show decimal on contour line

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Mon Oct 22 2012 - 12:27:28 MDT

You need to set cnLineLabelFormat. See example tm_8.ncl for examples of formatting strings. The simplest thing you could use is something like "0.5f"
See http://www.ncl.ucar.edu/Document/Graphics/format_spec.shtml for details of the formatting scheme.
 -dave

On Oct 22, 2012, at 5:31 AM, JinQ Liu wrote:

> In script, I use
> res@cnFillOn = False
> res@cnLinesOn = True
> res@cnLevels =(/1000.0,1002.5,1005.0,1007.5,1010.0,1012.5/)
> res@cnLineLabelInterval = 1
> but the output picture show value 1000 1003 1005 1008 on contour lines. it seems the decimal are rounded off.
> How can I draw original decimal value on contour line?
> Thanks in advance!
>
> Ji nQ
>
>
>
>
>
> <line.eps><line.ncl>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Oct 22 12:27:40 2012

This archive was generated by hypermail 2.1.8 : Tue Oct 23 2012 - 11:10:04 MDT