Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>>
C:\Python27\ArcGISx6410.2\pythonw.exe "C:\Python27\ArcGISx6410.2\Lib\idlelib\idle.pyw"
C:\Python27\ArcGIS10.2\pythonw.exe "C:\Python27\ArcGIS10.2\Lib\idlelib\idle.pyw"
arcpy.sa.ZonalStatisticsAsTable(inFeatureRaster, zoneField_RQ, inValueRaster_RQ, workspace + inFeatureProjects + "_ZonalStatsTable_RQ", "NODATA", "MEAN")
ExecuteError: Failed to execute. Parameters are not valid. ERROR 000864: Zone field: The input is not within the defined domain. ERROR 000889: Invalid field type. Failed to execute (ZonalStatisticsAsTable).
Thanks for the reply! It looks like I am/have been running 32 bit python (Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32). I ran the script a few times trying to catch the error message that flashes for half a second before the command window closes and it says something like "FATAL ERROR (INDEF) \n directory full" I don't know what directory the message is referring to, but i'm not limited in disk space...any ideas?
import os outRaster = r"C:\my_writeable_folder\outgrid" arcpy.env.workspace = arcpy.env.scratchWorkspace = os.path.dirname(outRaster) arcpy.sa.ZonalStatisticsAsTable(�?�)
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.