Description
This tool will reproject a raster data source to create a new raster dataset. The projection of the input raster dataset must be pre-defined. If you open this raster in ArcGIS, for instance, and the projection is 'undefined' then you must use the Define Projection tool in ArcToolbox to define the projection before running this command.
The output projection is specified by referencing a projection definition file (*.prj). See the section on 'Projection definition files' for an explanation of where to find these files, and how to create them if you are not already familiar with them.
Syntax
reproject.raster(in, prj, out);
| in | the input raster data source | |
| prj | the projection file specifying the new output projection | |
| out | the new output raster to create |
Example
reproject.raster(in="C:\data\landcov", prj="C:\data\WGS 1984.prj", out="C:\data\lcovrp.img");