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

Home » Public Forums » archive » Making an array of only the first number of each row in 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: Making an array of only the first number of each row in a file [message #92435 is a reply to message #92434] Tue, 15 December 2015 02:22 Go to previous message
Nikola is currently offline  Nikola
Messages: 53
Registered: November 2009
Member
arr = FLTARR(n)
a = 0.
OPENR, 1, filename
FOR i = 0, n-1 DO BEGIN
READF, 1, a
arr[i] = a
ENDFOR
CLOSE, 1

or

a = FLTARR(n, ncolumns)
OPENR, 1, filename
READF, 1, a
CLOSE, 1
arr = REFORM(a[0, *])
[Message index]
 
Read Message
Read Message
Previous Topic: Writing PNG file in pure IDL with metadata
Next Topic: Google search from within an IDL program

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

Current Time: Wed Oct 08 13:51:57 PDT 2025

Total time taken to generate the page: 0.00644 seconds