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

Home » Public Forums » archive » BSQ to BIL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
BSQ to BIL [message #69587] Fri, 05 February 2010 11:46 Go to previous message
jtmcahill is currently offline  jtmcahill
Messages: 26
Registered: October 2007
Junior Member
Hi,

I'm trying to convert a BSQ to BIL and then make an ISIS .cub file
using some of the ENVI Doit functions and a write_isis command.
Converting to BIL appears to work when I run the program below
(meaning it is identified as a BIL when I open it in ENVI) but I'm
having trouble making an ISIS .cub file out of the product. I realize
my mistake may be in ISIS but I want to make sure I've converted it to
BIL correctly first.

Second, the write_isis command isn't being recognized by idl.

I'd appreciate any help with either topic.

pro bsq2isis,filename

envi, /restore_base_save_files
envi_batch_init, log_file='batch.txt'
envi_open_file, filename, r_fid=fid
envi_file_query, fid, dims=dims, nb=nb
pos = lindgen(nb)
out_name = out_name
envi_doit, 'convert_doit', $
fid=fid, pos=pos, dims=dims, $
o_interleave=1, out_name=filename + '_bil.img', $
r_fid=r_fid
a=isis_write, r_fid,filename + '_bil.cub'

end
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Segfault when smoothing image
Next Topic: Window or Widget to front?

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

Current Time: Sat Oct 11 08:41:10 PDT 2025

Total time taken to generate the page: 0.64314 seconds