Hot answers tagged

5

Try to use Zonal statistic (or Zonal statistic as table if you want to have table as an output) tool with parameter MEAN if your cities are polygons. If your cities are point, you could make Buffer around them and then use Zonal statistic.


5

There is property isBroken - Returns True if a layer's data source is broken. for layer in arcpy.mapping.ListLayers(mxd, "*", df): if layer.isBroken: arcpy.mapping.RemoveLayer(df, layer) Link to Esri help



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