[Thread Prev][Thread Next][Index]

Re: NaN number in ASCII file



There is no good way to do this (or anyway tha I can think of). My suggestion
would be just to edit the file and replace the NaN's with some value.
Alternatively, you could use something like sed to do a command line
replacement:

sed -e 's/NaN/-1.0e+10/g' < inputfile > outputfile

Mark


-- 
 Mark Verschell                     NASA/Goddard Space Flight Center
 verschell@neptune.gsfc.nasa.gov    Code 970/Lab. for Hydrospheric Proc.
 301-614-5669  Fax: 301-614-5666    Greenbelt, MD 20771


		     Better Living Through Denial
               ** USQC Certified: 100% Microsoft Free **


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement