Re: Programmatically subset one image using ENVI routines. [message #49664] |
Tue, 08 August 2006 12:42  |
txominhermos
Messages: 25 Registered: October 2005
|
Junior Member |
|
|
Your are right Jeff. IDL just hangs up and nothing happends.
if I try saving the whole image:
ENVI_OUTPUT_TO_EXTERNAL_FORMAT, dims = [-1, 0, ns-1, 0,nl-1], /TIFF,
FID=fid,$
pos=pos, out_name='c:\cir.tif'
it works properly, and the ENVI's processing window appears. So I think
that I the way that I wrote is not the correct. Has someone done a
subset before?
thanks again
-txo
Jeff N. ha escrito:
> Perhaps you should post the error message it gives you, that would be
> helpful. Or, if it doesn't give you an error, but the results are not
> what you expect, explain how the results are different.
>
> Jeff
>
>
> txominhermos@gmail.com wrote:
>> Hi mates, I have a big image, so I just can use ENVI routines to avoid
>> the RAM memory saturation. I would like to subset an image with a given
>> pixel coordinates.
>>
>> I would like to output the image to TIFF, so I have tried to do it
>> directly:
>>
>>
>>
>> ENVI_OUTPUT_TO_EXTERNAL_FORMAT, dims = [-1, min_s, max_s-min_s+1,
>> min_l, max_l-min_l+1], /TIFF, FID=fid,$
>> pos=pos, out_name='c:\cir.tif'
>>
>>
>> where min_s, max_s, min_l, max_l are the pixels which are limits to
>> perform the subset.
>>
>> I thought that I had to indicate the limits in DIMS, but it seems not
>> to work.
>>
>> Do you know how to do it? I don't mind use ENVI_WRITE_ENVI_FILE if it
>> is not possible with ENVI_OUTPUT_TO_EXTERNAL_FORMAT.
>>
>>
>> Thanks for your attention
>>
>>
>>
>> -txomin
|
|
|