Programmatically subset one image using ENVI routines. [message #49684] |
Tue, 08 August 2006 05:09 |
txominhermos
Messages: 25 Registered: October 2005
|
Junior Member |
|
|
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
|
|
|