comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Error using data structures while reading ASCII file with different data types
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Error using data structures while reading ASCII file with different data types [message #87439 is a reply to message #87438] Mon, 03 February 2014 09:21 Go to previous messageGo to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
You have an array of data structures, so you need to pass in a structure. Right now you are passing an array. Instead of this:

data[*,ii]=[year,month,day,hour,minutes,seconds, $
long,lat,par1,par2,par3,par4]

try:

data[ii].year = year
data[ii].month = month
data[ii].day = day
...
...

Or look at the Struct_Assign procedure
http://exelisvis.com/docs/STRUCT_ASSIGN.html
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: name a variable with number
Next Topic: Theil–Sen estimator anyone?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 16:54:26 PDT 2025

Total time taken to generate the page: 0.08410 seconds