Writing to a specific line of a BIP or BIL file? [message #33413] |
Thu, 19 December 2002 17:09 |
Jonathan Greenberg
Messages: 91 Registered: November 2002
|
Member |
|
|
(thanks Andrew for your answer to my ASCII file question)
I now want to know, using IDL and/or ENVI function, how do I write data to a
specific LINE of a BIP or BIL file? Its easy to read it (envi_get_slice),
but not easy to write that slice. The brute force is to load the entire
image into memory, assign that specific line the new values, and then
rewrite the entire image back to disk. This is EXTREMELY slow. Even using
ENVI's spectral tiling routines (which at least minimize the memory used,
and allow me to know what line I'm on), I still have to parse an entire BIP
or BIL file and rewrite it, when all I want to do is write to a specific
line and leave the rest of them as is. Anyone have any suggestions for how
to do this?
--j
|
|
|