# 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)
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.