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

Home » Public Forums » archive » Re: export multiband file to TIFF file
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: export multiband file to TIFF file [message #52184] Sat, 13 January 2007 07:03 Go to next message
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
skymaxwell@gmail.com schrieb:
> hello
>
> after processing i want save file into TIFF format. I try use
> ENVI_OUTPUT_TO_EXTERNAL_FORMAT -
> file was created but i can't open it as TIFF file. i look here, seems i
> need use CF_DOIT, but this procedure
> create one band only.
>
> How save multiband file into TIFF format ?
>
> Thanks
>

This works fine for me:

pro out_to_tiff

envi_select, title='Select MS image', $
fid=fid,dims=dims,pos=pos

envi_output_to_external_format,fid=fid,$
dims=dims,$
pos=pos,$
/tiff,$
out_name='d:\temp\tst.tif'

end

Mort
Re: export multiband file to TIFF file [message #52537 is a reply to message #52184] Sun, 04 February 2007 11:18 Go to previous message
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
I created TIFF file but it's wrong image. It hold same dims, bands. So
I don't understand why image become so strange. I load it in
TrueColors in ENVI. It's become BLUE, and seems right part of image
become
the left part.

here is code


ENVI_DOIT,'ENVI_GS_SHARPEN_DOIT',FID=fid_src_mul, $
DIMS=mul_dims, $
POS=pos_mul, $
METHOD=0, $
OUT_NAME=full_file_name+'.IMG',$
INTERP=0,$
HIRES_FID=fid_Src_Pan, $
HIRES_DIMS=pan_dims,$
R_FID=pansharp_fid
;Creating TIFF
pos_mul=INDGEN(number_bands)
ENVI_FILE_QUERY,pansharp_fid,DIMS=pan_dims,NB=number_bands
ENVI_OUTPUT_TO_EXTERNAL_FORMAT,FID=pansharp_fid,$
DIMS=pan_dims, $
POS=pos_mul,$
/TIFF,$
OUT_NAME=full_file_name+'.TIF'

Thanks a lot
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: .sav format
Next Topic: IDL job opportunities

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

Current Time: Thu Oct 09 23:57:43 PDT 2025

Total time taken to generate the page: 2.96084 seconds