Skip to content

Commit

Permalink
Merge pull request #418 from nasaharvest/ana--fix-area-utils-bug
Browse files Browse the repository at this point in the history
Fixed bug that broke area estimate notebooks
  • Loading branch information
Gedeon-m-gedus authored Nov 7, 2024
2 parents 2172cd3 + 06e41fa commit 0463d9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/area_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@ def reference_sample_agree(
px, py = transform.rowcol(meta["transform"], lat, lon)

try:
ceo_agree_geom.loc[r, "Mapped class"] = int(binary_map[px, py])

ceo_agree_geom.loc[r, "Mapped class"] = int(binary_map[int(px), int(py)])

if (
row[label_question].lower() == "cropland"
or row[label_question].lower() == "crop"
Expand Down

0 comments on commit 0463d9e

Please sign in to comment.