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

Home » Public Forums » archive » READ array from a file
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: READ array from a file [message #93137 is a reply to message #93136] Sun, 01 May 2016 02:35 Go to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
What's the error now?
I guess that you are converting one element of the array and wonder why you don't get an array. If you know how many elements you have (let's call it nPts), you can do something like this:

arr1 = fltarr(nPts)

In the loop of i:

arr1[i] = float(splitted_string[2])

Cheers, Helder
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: READ ARRAY and extract the values
Next Topic: NetCDF4 problem

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

Current Time: Wed Oct 08 13:48:17 PDT 2025

Total time taken to generate the page: 0.00457 seconds