[HTML] Apparently I just wasn't waiting long enough. The second code (below) works for both. import arcpy arcpy.env.workspace = r"C:/GIS/NDVI/Georef_27_21_TIFFs/test" rasters = arcpy.ListRasters("*", "TIF") for raster in rasters: print raster outraster = raster.rpartition(".")[0]+"_olp.tif" arcpy.ProjectRaster_management(raster, outraster, "MNR_LAMBERT_PROJECTION_3161.prj", "NEAREST", "30", "WGS_1984_(ITRF00)_To_NAD_1983", "#", r"C:/Program Files/ArcGIS/Desktop10.0/Coordinate Systems/Projected Coordinate Systems/UTM/WGS 1984/Northern Hemisphere/WGS 1984 UTM Zone 16N.prj") [/HTML]
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.