Code sample

Rescale example 1 (Python window)

Rescale example 2 (stand-alone window)

This is a Python script sample for the Rescale tool.

##====================================##Rescale##Usage: Usage: Rescale_management in_raster out_raster x_scale y_scaleimportarcpyarcpy.env.workspace=r"C:/Workspace"##Rescale a TIFF image by a factor of 4 in both directionsarcpy.Rescale_management("image.tif","rescale.tif","4","4")