Skip to content

Commit 39cac56

Browse files
committed
August 2, 2026: testing the nature of the modis object after finding NA in extraction.
1 parent 57d20cb commit 39cac56

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/landcover_extract.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,8 @@ landcover_extract <- function(
505505
# Open the requested layer in file j.
506506
modis <- terra::rast(j)[index]
507507

508+
modis
509+
508510
# Loop through each site matched to file j and extract.
509511
for (k in unique(pts_to_fill$SurveyAreaIdentifier)) {
510512
# If buffered, extract using landscapemetrics::calculate_lsm(). If not,
@@ -586,8 +588,6 @@ landcover_extract <- function(
586588
# so handle that possibility below.
587589
extr_table <- terra::extract(modis, tmp, fun = unique)[, index]
588590

589-
print(extr_table)
590-
591591
# Whether only a single value was extracted (class == "integer") or
592592
# multiple values (else) prepare to pass to input data.
593593
if (inherits(extr_table, "integer")) {

0 commit comments

Comments
 (0)