Hi Jwolfe, thanks for the reply.
; following up to this line
SubRaster = raster.Subset(BANDS=[0], SUB_RECT=[0,0,200,200])
; works successfully and creates an ENVI Raster!
help,subraster
SUBRASTER ENVIRASTER
; but I cannot seem to use it properly
SubRaster.Export, newFile, 'TIFF'
% Attempt to call undefined method: 'ENVIRASTER::EXPORT'.
_________________________________________________________
I might have to wait for ENVI 5.1. for this to work properly :/
In the meantime I am studying the GeoTIFF specification
http://www.remotesensing....f/spec/contents.html
So that I can read, subset, update georeference information, and write through IDL.
; read
img=READ_TIFF(filepath, GEOTIFF=GeoKeys)
; subset
subset = img[x_lo:x_hi,y_lo:y_hi]
; update georeference information
; todo
[study the contents of geokeys structure (section 2.7 of GeoTIFF specification), I will post final results for Landsat 8.]
; write
WRITE_TIFF, outpath, subset, GEOTIFF=updated_GeoKeys