Dear Dennis,
We quite often receive crappy data from observation stations. The sample i
gave you is just one of those. The solution you gave is simply elegant and
beautiful. Its exactly what i want.
Thanks for the excellent job.
Cheers,
b:)
---- Basit A. Khan, Ph.D. Postdoctoral Research Fellow Division of Physical Sciences & Engineering Office# 3204, Level 3, Building 1, King Abdullah University of Science & Technology 4700 King Abdullah Blvd, Box 2753, Thuwal 23955 6900, Kingdom of Saudi Arabia. Office: +966(0)2 808 0276, Mobile: +966(0)5 0860 3617 E-mail: basitali.khan@kaust.edu.sa Skype name: basit.a.khan On 3/12/14 3:13 AM, "Dennis Shea" <shea@ucar.edu> wrote: >Use asciiread and str_get_cols > >http://www.ncl.ucar.edu/Document/Functions/Built-in/str_get_cols.shtml > >Specifically, see Example 3 > > >On 3/11/14, 3:34 PM, BasitAli Khan wrote: >> Dear NCL users, >> >> I am just wondering as how can I read an ascii file with varying >>column lengths e.g. >> >> >> PRES HGHT TEMP DWPT RELH MIXR DRCT SKNT THTA THTE >> hPa m C C % g/kg deg knot K K >> >>------------------------------------------------------------------------- >> 1013.0 17 22.8 16.8 69 12.02 20 10 294.9 329.5 >> 1012.0 26 22.8 16.9 70 12.15 350 14 294.9 330.0 >> 1000.0 136 22.4 18.8 80 345 16 295.6 335.5 >> 984.0 275 21.3 83 345 20 295.8 335.5 >> 930.0 763 17.6 97 350 14 296.8 >> >> >> At the moment when I read this kind of ascii data using readasciiTable, >>data columns get mixed up and actually messed up. >> >> Any help/advise/suggestion would be greatly appreciated. >> >> >> Thanks and best regards, >> >> Basit >> >> ________________________________ >> >> This message and its contents including attachments are intended solely >>for the original recipient. If you are not the intended recipient or >>have received this message in error, please notify me immediately and >>delete this message from your computer system. Any unauthorized use or >>distribution is prohibited. Please consider the environment before >>printing this email. >> >> >> >> _______________________________________________ >> ncl-talk mailing list >> List instructions, subscriber options, unsubscribe: >> http://mailman.ucar.edu/mailman/listinfo/ncl-talk >> ________________________________ This message and its contents including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email. _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Tue Mar 11 23:37:16 2014
This archive was generated by hypermail 2.1.8 : Fri Mar 14 2014 - 15:08:52 MDT