Showing results for 
Search instead for 
Do you mean 

SML Example Script (Copy raster to raster)

by Technical Evangelist on ‎10-02-2015 12:20 PM - edited on ‎03-25-2016 03:14 AM by Anonymous (397 Views)

SML

Spatial Modeler Language (SML) is a spatial analysis script-based language for manipulating both raster and vector data. It is the underlying script for Model Maker in ERDAS IMAGINE.

Sample SML Script

# Example Model: copyraster.mdl
# Function: Copy Raster to Raster
#
# Declare input raster: variable name is "in"

RASTER in FILE "$IMAGINE_HOME/examples/lnsoils.img";
# Declare output raster: variable name is "out"
RASTER out FILE DELETE_IF_EXISTING "/vol/imgfiles/soils.img";
#
# Copy "in" to "out"

out = in;
#
quit;

Contributors