# Location where the images will be copied to: arcpy.env.workspace = r'R:\RhodeIsland_imagery_20130118\1951_1952_RIUTM_GeoTIFF\ArcReProject' # Set the output projection, i.e., the zone number with open(r'X:\Archive\Python_Scripts\UTM_19.txt', 'r') as f: prj = f.readlines()[0] outPath = arcpy.env.workspace istFiles = open(r'R:\RhodeIsland_imagery_20130118\1951_1952_RIUTM_GeoTIFF\Index\List_Files_UTM.csv', 'r') for inputRasters in listFiles.readlines(): inputFilenames = os.path.splitext(os.path.basename(inputRasters))[0] outPut = os.path.join(outPath,inputFilenames + ".tif") arcpy.ProjectRaster_management(inputRasters, outPut, prj)
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.