Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import the module
- import arcpy
- from arcpy.sa import *
- from arcpy import env
- arcpy.CheckOutExtension("Spatial")
- env.overwriteOutput = True
- #set the workspace
- arcpy.env.workspace = r"C:UsersWindowsDocumentsJO_GIS_Analyst"
- #Create a list of raster files
- rasterList = arcpy.ListRasters("reprojected*", "TIF")
- #Loop through the list of ListRaster
- for k in rasterList:
- print k #check the presence of rasters
- OutRaster = (k)*100) #multiplying the raster by 100
- OutRaster_Name = "nofpt" + k #specifying the output name
- OutRaster.save(OutRaster_Name) #saving the raster
- for k in rasterList:
- print k #check the presence of rasters
- OutRaster = Raster(k)*100 #multiplying the raster by 100
- OutRaster_Name = "nofpt" + k #specifying the output name
- OutRaster.save(OutRaster_Name) #saving the raster
Add Comment
Please, Sign In to add comment