X
1403

Tiled Output of an Image (ENVI Classic)

Adding this .pro or .sav file to your ENVI save_add directory will automatically add a button labeled "Output File To Tiles" at the bottom of the Basic Tools menu. The GUI created by clicking this button asks the user to select an input file, specify the x and y dimensions of a grid, specify the output format, and select an output directory. Clicking "OK" in the GUI will write out x * y images to the output directory in the selected format.  The tool will optionally write out vector files (both .evf and .shp, with attributes) of the grid of output image tiles.

The functionality can also be called as a DOIT routine for batch or other access. The DOIT call in IDL looks like:

TiledOutput_DoIt, fid=fid, nXtiles=nXtiles, nYtiles=nYtiles, outFormat=outFormat, outDir=outDir, /outVectorGrid

where:

fid = an ENVI file ID

nXtiles = an integer specifying the number of image tiles in the output grid in the x direction

nYtiles = an integer specifying the number of image tiles in the output grid in the y direction

outFormat = an integer specifying output file format (0 to 8 is, respectively, ENVI, ERDAS lan, ER MAPPER,ESRI grid, IMAGINE, JP2, NITF, PCI, and TIFF)

outDir = a full path to the desired output directory including a final path separator (e.g. a trailing '\' or '/')

outVectorGrid = optional keyword to set for vector files of the output grid to be created.