Hello,
I am trying to use the read_csv function where the first line in the csv has the column names.
I tried using the # in front of the names but i get the result of FIELD1, FIELD2, etc.
I tried looking in the help but didnt see any usage on the # mark, I found that tip here
http://web.astroconst.org...doc/io/read_csv.html
my code
datstruc = read_csv(datfile.csv,header)
datfile.csv file (just the first 5 rows)
NAME,aPH,aSM,bPH,bSM
398.6,1,10,100,1000
439.2,2,20,200,2000
458.3,3,30,300,3000
479.8,4,40,400,4000
output
FIELD1 DOUBLE Array[15]
FIELD2 LONG Array[15]
FIELD3 LONG Array[15]
FIELD4 LONG Array[15]
FIELD5 LONG Array[15]
I dont want to write code just to rename the fields of the structure if i dont have to.
Any suggestions?