# Buku "Python untuk GIS", Bab 31: Dua Gaya, Satu Pekerjaan: ArcPy di ArcGIS Pro dan ArcMap
# Versi ArcMap 10.8 (Python 2.7)
        w.writerow(["NAMA_KPH", "LUAS_HA", "SEMPADAN_HA", "HOTSPOT", "NDVI_RATA", "CHM_RATA_M", "SEMPADAN_PERSEN"])
        with arcpy.da.SearchCursor(r"memory\ringkas", ["NAMA_KPH", "SHAPE@AREA", "Join_Count"]) as k:
            for n, luas, jml in k:
                w.writerow([n, round(luas / 10000, 2), round(sempadan.get(n, 0), 2), jml,
                            round(n_rata[n], 3), round(c_rata[n], 2),
                            round(100 * sempadan.get(n, 0) / (luas / 10000), 1)])
