How to convert XYZ data files (*.xyz) to separate raster DEMs in batch mode?
Select the ERDAS IMAGINE Terrain tab and choose the Terrain Prep Tool button.
In the Terrain Prep Tool dialog load at least one XYZ file (*.xyz) that you want to convert to a raster image by clicking the Add DTM files to the list button. You will add the other XYZ files later.
To change the pixel size of the output DEM choose Split from the Process menu of the Terrain Prep Tool.
In the Split DTM dialog click the Settings button. This will open the Output Settings dialog where you can enter the X and Y Cell Sizes.
Click OK in the Output Settings dialog and then click Cancel in the Split DTM dialog.
Save the Terrain Prep Tool project by choosing Save from the File menu.
Batch Command File creation
Create your Batch Command file (*.bcf) and point to the saved Terrain Prep Tool project file (*.dfp). In the example below the project is saved in “d:/input/test.dfp”. Create a new text file with following content:
** IMAGINE Version 16.0 Batch Commands File
variable Input1 User;
variable Output1 Auto "d:/output/$(Input1.pathright)$(Input1.root)_convert.img" Delete_Before;