GIS 5103 LAB 6

For the final lab of the course, the objectives included using Spyder to list and describe rasters, using raster objects in geoprocessing, map algebra in operators, and defining raster tool parameters with classes. The end goal was to create a script for a raster detailing specific forest landcover, slope and aspect profiles by copying a script which was coded on Spyder. My script began by importing arcpy and setting the environment's workspace. I needed to create a new geodatabase using the arcpy.CreateFileGDB_management which is where my raster was saved. Part of the script involved checking for the Spatial Analyst module extension, using the arpy.CheckOutExtension and an if statement. The remaining code was in block form following the if statement, after the SA module checks out, and included creating an outraster for the elevation and the percent rise, and saving the outraster in the results folder. I then used the ReMapValue function to assign the appropriate classifications...