float-to-string

From: Kyle Wilcox <Kyle.Wilcox_at_nyahnyahspammersnyahnyah>
Date: Thu, 20 Jul 2006 13:04:44 -0400

Is there an easy way to do a "floattostring" conversion? Right now I
just let NCL do it automatically and get the coarse warning message each
time. Does that slow down the script at all?

Example: 'cutdata' is array of floats, and I need to process only those
with the length of '6'.

if (dimsizes(stringtochar(cutdata(newdata))) - 1 .eq. 6) then
        ; do something
else
        ; don't do something

* Excited next version of NCL for 'strlen' *

Thanks.

-- 
 Kyle Wilcox
 NOAA Chesapeake Bay Office
 410 Severn Avenue
 Suite 107A
 Annapolis, MD 21403
 office: (410) 295-3151
 Kyle.Wilcox_at_noaa.gov
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jul 20 2006 - 11:04:44 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 21 2006 - 08:53:09 MDT