import shutil sourcefile = r'E:\path\to\file\example.ext' destinationfile = r'C:\path\to\where\File\gets\copied\copy_example.ext' shutil.copy(sourcefile, destinationfile)
#specify the workspace rasters are located in ws = "H:\Documents\ArcGIS\Default.gdb" arcpy.env.workspace = ws #for each Raster in the workspace, do something rasters = arcpy.ListRasters() for r in rasters: desc = arcpy.Describe(r) rastername = desc.Name print "Raster Name: %s" % (rastername)
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.