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

Home » Public Forums » archive » Read several files into one big data array?
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 several files into one big data array? [message #89520 is a reply to message #89513] Wed, 22 October 2014 16:31 Go to previous messageGo to previous message
lucesmm is currently offline  lucesmm
Messages: 26
Registered: October 2014
Junior Member
On Wednesday, October 22, 2014 3:52:10 PM UTC-7, David Fanning wrote:
> David Fanning writes:
>
>> Something like this:
>>
>> outLun = Get_Lun()
>> FOR j=0,numFiles-1 DO BEGIN
>> thisFile = files[j]
>> OpenR, inLun, thisFile, /Get_Lun
>> ReadF, inLun, ....
>> Free_Lun, inLun
>> ... whatever you do to manipulate the data here
>> PrintF, outLun, manipulatedData
>> ENDFOR
>> Free_Lun, outLun
>
> Whoops! Forgot to open that output file!
>
> outLun = Get_Lun()
> OpenW, outLun, outputfileName
> FOR j=0,numFiles-1 DO BEGIN
> thisFile = files[j]
> OpenR, inLun, thisFile, /Get_Lun
> ReadF, inLun, ....
> Free_Lun, inLun
> ... whatever you do to manipulate the data here
> PrintF, outLun, manipulatedData
> ENDFOR
> Free_Lun, outLun
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")

David, Thanks a lot!!!!
it works, now I have a huge matrix in a separate file :D
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: bug in cgHasImageMagic
Next Topic: Fleurdelas - Carbomap's Open Source LiDAR file manipulator - now fully support LAS 1.4 and the Extra Bytes VLR

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

Current Time: Sat Oct 11 06:45:21 PDT 2025

Total time taken to generate the page: 0.31866 seconds