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

Home » Public Forums » archive » BIL to BSQ in chunks
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
BIL to BSQ in chunks [message #67953] Thu, 03 September 2009 10:32
rafaloos is currently offline  rafaloos
Messages: 15
Registered: January 2006
Junior Member
Hi all,

I am trying to convert very large BIL files to BSQ. The files are too
big to open in one single shot so I have to block them.
Each block is then converted to BSQ.

The dimensions of a file are:
Samples: 296
Lines: 8000
Bands: 492
Data type: UINT

My question is: Is there a way to open a file for writing and leave it
open while keep adding the BSQ chunks ?
Here is what I was trying to do, but with an unsuccessful result ... :

arr = uintarr(samples, bands, 1000)
openr, lun, file, /get_lun
openw, out, 'OUTPUT_FILE'', /get_lun
for i = 0, 7 do begin
readu, lun, arr
a = transpose(arr,[0,2,1])
writeu,out, a
endfor

Thank you
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Error message opening a file in IDL script
Next Topic: How to obtain the process ID of the current IDL process in a platform-independent way?

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

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

Total time taken to generate the page: 0.00687 seconds