I'm new to GIS. I want the sum of nighttime lights (DMSP) by district for some country. I'm running this arcpy.gp.ZonalStatisticsAsTable_sa(Limites_distritales, "IDDIST", rc, temp_table, "DATA", "")
and then converting to .csv
. However, when I check the output some districts (identified by IDDIST
) are missing. I've checked all my script and they shouldn't be dropped; my guess is that they are being assigned NoData
because they overlap multiple grids (and no single grid is in the polygon) and thus no statistics are being calculated for them.
One of the problematic districts is shown in the picture below.
Is there a workaround for this?
No comments:
Post a Comment