Help with something that should be simple: [message #71011] |
Fri, 14 May 2010 16:27 |
ska1
Messages: 2 Registered: May 2010
|
Junior Member |
|
|
Hi,
Basically i have a script that makes a stack of 12 input files (22
layers). The script transforms them to all be the same interleave and
datatype(2=integer). The problem is that two of the multiband files
are byte.
When i try to use 'math_doit' for exp=fix(b1) i can not get it to
output a multiband file.
After opening the file and checking the datatype i have this chunck of
code:
IF (dt eq 1) THEN BEGIN
pos = lindgen(nb)
IF (nb GT 1) Then Begin
fidMath = strarr(nb)
for z =0, nb-1 Do fidMath[z]=fid
fid = fidMath
ENDIF
envi_doit,'math_doit', fid=fid, dims=dims, exp=exp, out_name =
out_name, pos=pos, r_fid = r_fid_int
But i am only getting a one band output!
fid= [25,25] pos=[0,1], dims = -1 0 7067
0 7198 and out_name has an appropriate value.
Please help me see what is going wrong!
thanks,
Karen
|
|
|