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 #87455 is a reply to message #87448] Tue, 04 February 2014 06:07 Go to previous messageGo to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
On Tuesday, February 4, 2014 5:12:25 AM UTC-5, Madhavan Bomidi wrote:
> Thanks Matthew ...This works!!!

You are welcome! After thinking a little more, you could also use a structure, similar to the original:

data[ii] = { YYYY:year, MM:month, DD:day, HR:hour, MI:minutes, SEC:seconds, $
LON:long, LAT:lat, P1:par1, P2:par2, P3:par3, P4:par4 }


By using square brackets, you created a numeric array and forced all of your numbers to be floats. An array of floats cannot fit into an array of structures. You can, however, use curly brackets to create a structure.
[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 04:04:33 PDT 2025

Total time taken to generate the page: 1.28144 seconds