Thursday, July 26, 2018

GIS5103 - GIS Programming - Module 9

This module focused heavily on working with rasters. After creating many temporary rasters within the script, I combined the six of them to create a new raster file which shows specific degrees of slope and aspect.



1.       There are two steps near the end that gave me a bit of trouble in this exercise. The first being the algebraic equations. I tried to combine both of the slope calculations by combining them into a single line trying to separate them by the “and” command. For example, goodslope = slope <20 and slope >5. This gave me errors, and after looking ahead in the instructions I realized that these operations had to be done separately. After splitting the slope and aspect calculations into four separate steps, I used the four temporary rasters and combined them all together to create the final product.
2.       At the very end, I also encountered an issue when trying to run my finalized script. I initially saved each separate new raster to a permanent one with the save function. Each one of these saves gave me an error, which stated that the file I was trying to create already existed. This seemed strange to me as the overwrite output was already set. In order to make the script work I had to delete the save functions. It ran fine right afterwards.

No comments:

Post a Comment