3

You are calling arcpy.ZonalStatistics_sa() but arcpy does not have that function. The function is whithin the sa module and can be called as follows: arcpy.sa.ZonalStatistics(in_zone_data, zone_field, in_value_raster, {statistics_type}, {ignore_nodata}) However, you already ran from arcpy.sa import * so the following should be enough to run the tool: ...


2

ArcGIS Help description of the error is the following: This is an operating system error and can indicate different error conditions. These errors are not specifically documented in the ArcGIS Desktop Help system. However, in most cases, the error description provided with the error code can be used to look up additional information on the ...


1

if grey_raster <= 28523 does not make sense to arcpy. 28523 is the value you want to check against each pixel of grey_raster, which is where Con function comes handy. In your case, you should use nested conditions like: arcpy.env.workspace = ndviws ndvirasterlist = arcpy.ListRasters() for rimage in ndvirasterlist: ndvi_raster = arcpy.sa.Raster(...


1

I think you should use set the extent of the output in the Environments of the Raster Calculator to match your larger raster (Raster 1). (here, you should add your Raster2 extent, otherwise use other options like Union of inputs that might work as well) Then do a Conditioal expression like (not tested): Con("Raster2", "Raster2") This should output a ...


1

I think to make your script work you should: remove all the arcpy.Raster() calls # Set names for optional output rasters, seems not working??? outDirectRad = arcpy.Raster(outNameDirect) outDiffuseRad = arcpy.Raster(outNameDiff) outDirectDur = arcpy.Raster(outNameDirDur) change the call to arcpy.sa.AreaSolarRadiation like this: # Execute ...


1

ArcGIS 10.x has a tool in the spatial analyst toolset called Majority Filter which will replace cells in a raster based on the values of their neighbors. Here is a link to the tool which is available at all license levels. If you do not have access to the spatial analyst tool in ArcGIS then you have the option of doing this analysis using open source ...


Only top voted, non community-wiki answers of a minimum length are eligible