Hi all,
I am getting an error when using the ENVI Resize_Doit routine, and my first question is, is it compatible with my current version of IDL? I am using IDL version 8.0.1 (with ENVI 4.8).
If it is possible to use this routine with my version of IDL, I am trying to figure out why I get the following error "Variable is undefined: WL"
Some background into what I am doing.
I am loading 3 ascii files then creating an image file using the ENVI_WRITE_ENVI_FILE routine (code below)
ENVI_WRITE_ENVI_FILE, rnd_data, BNAMES = ['Red', 'MIR', 'TIR'], FILE_TYPE = 0, INTERLEAVE = 0, NB = 3, NS = ns, NL = nl, OUT_DT = 4, OUT_NAME = ofname, R_FID = rfid
Then, I want to resize this image from 7000x7000 to 40x40 using the following code
ENVI_FILE_QUERY, rfid, DIMS=dims
ENVI_DOIT, 'Resize_Doit', FID = rfid, DIMS = dims, INTERP = 3, RFACT = [0.005714, 0.005714], OUT_BNAME = ['RED' , 'MIR', 'TIR'], OUT_NAME = ofrname
and this is where I get the error.
I have tried the same concept but using CONGRID, and this produces no error, so I believe that it comes from my implementation of the resize routine. The reason I am not continuing with congrid is because I need to be able to apply the pixel aggregation interpolation method, which according to the help page is not available for the congrid function.
This brings up a second question. I have specified the INTERP =3 in the resize, but when viewing the progress window, the interpolation method states: "1st degree polynomial w/ nearest neighbor". Is this correct, as I am trying to get the pixel aggregation method?
Would someone be able to help me with interpreting this error please?
Many thanks in advance
SM
|