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

Home » Public Forums » archive » Re: BSQ to BIL
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
Re: BSQ to BIL [message #69576] Sat, 06 February 2010 13:00 Go to next message
Maxwell Peck is currently offline  Maxwell Peck
Messages: 61
Registered: February 2010
Member
> a=isis_write, r_fid,filename + '_bil.cub'

Hi,

I'm not sure where ISIS_WRITE comes from (it's not an ENVI function as
far as i know), or what your actual error is, but it is unlikely it
will accept the r_fid keyword. You will probably need to use the
ENVI_GET_DATA function to put the band in an IDL variable and output
it from that. If there is a lot of data you may need to use tiling
(all in the ENVI Programmers guide).

Max
Re: BSQ to BIL [message #69586 is a reply to message #69576] Fri, 05 February 2010 12:02 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Hawaiianite writes:

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

The WRITE_ISIS command is either a procedure or a function.
You seem to be calling it as if it were both! :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: BSQ to BIL [message #69757 is a reply to message #69576] Mon, 08 February 2010 12:53 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Feb 6, 7:00 pm, Maxwell Peck <maxjp...@gmail.com> wrote:
>> a=isis_write, r_fid,filename + '_bil.cub'
>
> Hi,
>
> I'm not sure where ISIS_WRITE comes from (it's not an ENVI function as
> far as i know), or what your actual error is, but it is unlikely it
> will accept the r_fid keyword. You will probably need to use the
> ENVI_GET_DATA function to put the band in an IDL variable and output
> it from that. If there is a lot of data you may need to use tiling
> (all in the ENVI Programmers guide).
>
> Max

This is not directly related to the original question, but if anyone
is interested, I have a reader and writer for ISIS cubes. The main
reasons I wrote them are the awkward interface of the ISIS routines,
their lack of ability to do more complicated things than just reading
or writing core bands, and to not need to install ISIS just to read
and write cubes from IDL. However, my routines presently only support
BSQ.
Re: BSQ to BIL [message #69764 is a reply to message #69576] Mon, 08 February 2010 08:01 Go to previous message
jtmcahill is currently offline  jtmcahill
Messages: 26
Registered: October 2007
Junior Member
On Feb 6, 4:00 pm, Maxwell Peck <maxjp...@gmail.com> wrote:
>> a=isis_write, r_fid,filename + '_bil.cub'
>
> Hi,
>
> I'm not sure where ISIS_WRITE comes from (it's not an ENVI function as
> far as i know), or what your actual error is, but it is unlikely it
> will accept the r_fid keyword. You will probably need to use the
> ENVI_GET_DATA function to put the band in an IDL variable and output
> it from that. If there is a lot of data you may need to use tiling
> (all in the ENVI Programmers guide).
>
> Max

David and Max,

I confess that I definitely got the syntax wrong with the Isis_write
command. By the way, "isis_write" is a command that the USGS provides
for making ".cub" files from IDL compatible with their mapping
software program (ISIS). They have several commands help accommodate
those of us that like aspects of both IDL and ISIS. In this
particular case, I'm looking to format this file for import into ISIS
but I've never had to do a BSQ to BIL conversion.

Anyway, I'm more concerned with converting the file to BIL format
first. I can worry about writing the .cub file later (which I've done
before I'm just a bit rusty, obviously). What I don't understand is
the above code (with the isis_write command commented out) makes a
file that ENVI says is a BIL when opened and provides a small header
file with basic information. How can verify that this is true. I'm
worried it may have only changed some info in the header to appease
me. I've tried verifying this by loading it into ISIS with a RAW2ISIS
procedure but it gives me a pretty messed up image so either it isn't
writing out the header info correctly for me to enter into ISIS or it
hasn't made the conversion at all. It looks beautiful in ENVI and
says it is a BIL but that is one step short of where I need to go.

Any thoughts?
Josh
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Shout Out to Mark Hadfield
Next Topic: oplot

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

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

Total time taken to generate the page: 0.00697 seconds