[ncl-talk] Sub:Read CSV
dale zuri
dalezuri at gmail.com
Mon Nov 27 16:25:59 MST 2017
Hi ,
I have an issue with reading the CSV.
I would appreciate any help and suggestions.
Thanks
begin
infile1 = "AK_BackCast_StnData-Temp.csv"
lines1 = asciiread (infile1, -1, "string")
print(lines1)
delim = ","
;months starts in field number 1
name = str_get_field(lines1,3,delim)
print(name)
I want to read each column with associated string field.
Except number 1 and 2, the rest of the field numbers are not correct. For
example, number 3 field, print the different column.
I don't understand whats happening here.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171127/57411207/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AK_BackCast_StnData-Temp.csv
Type: text/csv
Size: 237033 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171127/57411207/attachment-0001.csv>
More information about the ncl-talk
mailing list