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

Home » Public Forums » archive » IDL Array with mixed formating
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: IDL Array with mixed formating [message #91763 is a reply to message #91752] Mon, 24 August 2015 09:31 Go to previous message
lucesmm is currently offline  lucesmm
Messages: 26
Registered: October 2014
Junior Member
I ended up doing something like this and it looks like it's working fine

OPENR,lun,file_name,/GET_LUN
nlines = FILE_LINES(file_name)

array= strarr(1,nlines)
data=[]
line=[]

READF,lun,array
close, /all
for i=0,nlines-1 do begin
lines=float(strsplit(array(i), /EXTRACT))
data=[[data],[lines]]
endfor
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Passing Arrays BY REFERENCE
Next Topic: Plot and Legend problem

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

Current Time: Wed Oct 08 13:38:39 PDT 2025

Total time taken to generate the page: 0.00418 seconds