What you can do is use the READ_TIFF() function to read the image into an array, and then use CONGRID() to resample the image. For example:
img = read_tiff(filename)
newimg = congrid(img, 3, newxdim, newydim)
write_tiff, newfilename, newimg
You could do this in a FOR loop for multiple files as well. For example you could use the FILE_SEARCH() function to retrieve the paths to all of your tiff files and then loop through those, reading, resampling, and rewriting each file.
-JE
ITTVIS Tech Support
|