X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 01 Oct 2010 07:44 PM by  anon
READ_CSV
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
01 Oct 2010 07:44 PM
    it's great to have the read_csv function. I read a CSV file that has a field (column) in it somewhere (not always in the same place) that I'm looking for. I specify header= in the function call and I get the array of field/column names that are in the CSV file. (as in point_list = read_csv(my_csv, header_point_fields) ) I can search that header_point_fields to find the position of the field I'm looking for. Example: I'm looking for the field/column named "POINT_ID". I search the header array and I find that read_csv says that the 3rd column is the POINT_ID field. Now I'm stumped as to how to get that data out of the returned structure of arrays. The command: help, /struct, point_list gives the names of the structure elements as FIELD1, FIELD2, FIELD3, etc. What I want to do is is, say, WHERE(point_list.POINT_ID How can I do this?
    You are not authorized to post a reply.