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

Home » Public Forums » archive » Re: IDL - ENVI batch mode question
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: IDL - ENVI batch mode question [message #43589] Thu, 21 April 2005 00:01 Go to previous message
MMMisha[1] is currently offline  MMMisha[1]
Messages: 5
Registered: April 2005
Junior Member
jnettle1@utk.edu wrote:
> Michael,
>
> If I'm understanding your problem correctly, this is a lot simpler
than
> you think. It sounds like you want to do some basic array
> manipulation, like this:
>
> Say you have two images, image1 and image2, that have the same column
> and row dimensions, which we'll call xsize and ysize. You can make
the
> multiband image with simple code:
>
> multi_band_image = bytarr(xsize, ysize, 2)
> multi_band_image[*,*,0] = image1
> multi_band_image[*,*,1] = image2
>
>> From there you have lots of options. You can use IDL code to save
the
> image to a file and then use ENVI_SETUP_HEAD to write a header, but
> like you suggest, using ENVI_WRITE_ENVI_FILE seems like the easiest
> way. It'd look like this:
>
> ENVI_WRITE_ENVI_FILE, multi_band_image, out_name='filename.img'
>
> Is that what you needed help with? Or were you looking for how to
setup
> ENVI in batch mode? BTW, you can certainly write out a multi-band
> image to a file without using ENVI at all...could that have been what
> you were looking for?
>
> Jeff
>
>
>
> MMMisha wrote:
>> Dear all :)
>>
>> I would like to about the right way to write programmaticaly
>> (throughout IDL - ENVI batch mode) ONE-band image file
(byte-format)
> as
>> a band of the new MULTI-band image.
>>
>> During the work over some project I m getting a lot of gray-scale
> image
>> files that I want to write as bands in multi-band image file. Is it
>> possible thoughout regular way with ENVI_WRITE_ENVI_FILE with some
>> specifivations?
>>
>> Thank you in advance
>>
>> Michael

Dear Jeff,

Thanks a lot for your help - it works now !!!

My problem was in wrong discribing of multidimensional array
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Inverse CWT
Next Topic: idlwave-launch-idlhelp doesn't help

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

Current Time: Sat Oct 11 06:01:26 PDT 2025

Total time taken to generate the page: 0.79735 seconds