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

Home » Public Forums » archive » Re: Gram-Schmidt transformation
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: Gram-Schmidt transformation [message #52043] Fri, 05 January 2007 04:15 Go to next message
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
i'm read help again for ENVI_GS_SHARPEN_DOIT

in help showing that LORES_FID = array !


Syntax
ENVI_DOIT, 'ENVI_GS_SHARPEN_DOIT', DIMS=array | FID=fileID [,
/FILTER_FID=variable] [, HIRES_DIMS=array], HIRES_FID=fileID |
HIRES_POS=array | /IN_MEMORY [, INTERP={0 | 1 | 2}] [,
/LORES_DIMS=array] [, LORES_FID=array] [, LORES_POS=array] [,
M_FID=fileID] [, M_POS=array] [, MASK_VALUE=value], METHOD={0 | 1} [,
OUT_BNAME=string array], OUT_NAME=string | POS=array [, R_FID=fileID]


yes i can do pan sharpening through ENVI menu with same data files
Re: Gram-Schmidt transformation [message #52044 is a reply to message #52043] Fri, 05 January 2007 00:59 Go to previous messageGo to next message
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
skymaxwell@gmail.com schrieb:
> nothing happened with HIRES_DIMS keyword
>
> ENVI_DOIT,'ENVI_GS_SHARPEN_DOIT',fid=fid_Src_Mul,HIRES_FID=f id_Src_Pan,$
> INTERP=0,LORES_FID=[fid_Src_Mul,fid_Src_Mul,fid_Src_Mul],MET HOD=0,$
> HIRES_DIMS=hi_res_dims,OUT_NAME='C:\test.img'
>

Have a closer look at the help for ENVI_GS_SHARPEN_DOIT. The LORES_FID
keyword wants a long integer. You are passing it an array. I don't think
you should use this keyword at all if you are using METHOD=0. Again,
read the help carefully.

Can you do the pan sharpening with the same input data from the ENVI menu?

- Mort
Re: Gram-Schmidt transformation [message #52045 is a reply to message #52044] Thu, 04 January 2007 23:48 Go to previous messageGo to next message
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
nothing happened with HIRES_DIMS keyword

ENVI_DOIT,'ENVI_GS_SHARPEN_DOIT',fid=fid_Src_Mul,HIRES_FID=f id_Src_Pan,$
INTERP=0,LORES_FID=[fid_Src_Mul,fid_Src_Mul,fid_Src_Mul],MET HOD=0,$
HIRES_DIMS=hi_res_dims,OUT_NAME='C:\test.img'
Re: Gram-Schmidt transformation [message #52049 is a reply to message #52045] Thu, 04 January 2007 10:30 Go to previous messageGo to next message
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
skymaxwell@gmail.com schrieb:
> how to use ENVI_GS_SHARPEN_DOIT procedure ?
>
> my IDL code not make any result file. But there no mistakes in
> compilation and during running
>
> ...
> ENVI_OPEN_FILE,file_Src_Mul,R_FID=fid_Src_Mul
> ENVI_OPEN_FILE,file_Src_Pan,R_FID=fid_Src_Pan
> ...
> ENVI_FILE_QUERY,fid_Src_Pan,NS=f_ns_pan,NL=f_nl_pan,DIMS=pan _dims
> ENVI_FILE_QUERY,fid_Src_Mul,NS=f_ns_mul,NL=f_nl_mul,DIMS=mul _dims,POS=pos_mul
>
> hi_res_dims=[-1L,0,f_ns_pan-1,0,f_nl_pan-1]
>
> ENVI_DOIT,'ENVI_GS_SHARPEN_DOIT',fid=fid_Src_Mul,HIRES_FID=f id_Src_Pan,$
> INTERP=0,LORES_FID=fid_Src_Mul,fid_Src_Mul,fid_Src_Mul],METH OD=0,$
> OUT_NAME='C:\test.img'
>
>
>
> Thanks
>

Hello,

You define the hi_res_dims array but you don't pass it to the batch
routine with the HI_RES_DIMS keyword. The keyword is optional, but it
might nevertheless be necessary for your images.

Cheers

Mort Canty
Re: Gram-Schmidt transformation [message #52141 is a reply to message #52043] Fri, 05 January 2007 05:38 Go to previous message
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
skymaxwell@gmail.com schrieb:
> i'm read help again for ENVI_GS_SHARPEN_DOIT
>
> in help showing that LORES_FID = array !
>
>
> Syntax
> ENVI_DOIT, 'ENVI_GS_SHARPEN_DOIT', DIMS=array | FID=fileID [,
> /FILTER_FID=variable] [, HIRES_DIMS=array], HIRES_FID=fileID |
> HIRES_POS=array | /IN_MEMORY [, INTERP={0 | 1 | 2}] [,
> /LORES_DIMS=array] [, LORES_FID=array] [, LORES_POS=array] [,
> M_FID=fileID] [, M_POS=array] [, MASK_VALUE=value], METHOD={0 | 1} [,
> OUT_BNAME=string array], OUT_NAME=string | POS=array [, R_FID=fileID]
>
>
> yes i can do pan sharpening through ENVI menu with same data files
>

I'm afraid that that must be a misprint. If it is a file ID, it can't be
an array. Look at the explanation for the keyword later in the online help:

LORES_FID (optional)
Use this optional keyword to specify the file ID for the low spatial
resolution panchromatic file. You must specify LORES_FID if METHOD=1.
This value is returned from the keyword R_FID in the ENVI_OPEN_FILE
procedure. LORES_FID is a long integer with a value greater than 0. An
invalid file ID has a value of -1.

As I said, I don't think you need it for METHOD=0.

-Mort
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: forward slash in data item name
Next Topic: Re: Array with mixing data types

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

Current Time: Wed Oct 08 20:01:32 PDT 2025

Total time taken to generate the page: 0.16313 seconds