get_original_habitat: Retrieve the original (i.e. not aggregated) habitat data.

View source: R/restopt_problem.R

get_original_habitatR Documentation

Retrieve the original (i.e. not aggregated) habitat data.

Description

Retrieve the original (i.e. not aggregated) habitat data.

Usage

get_original_habitat(problem)

Arguments

problem

restopt_problem() Restoration problem object.

Value

terra::rast() The original (i.e. not aggregated) habitat data.

Examples

## Not run: 
#' # load data
habitat_data <- rast(
  system.file("extdata", "habitat_hi_res.tif", package = "restoptr")
)

# create problem
problem <- restopt_problem(
       existing_habitat = habitat_data,
       aggregation_factor = 4,
       habitat_threshold = 0.7
)

plot(get_original_habitat(problem))

## End(Not run)


restoptr documentation built on Aug. 12, 2025, 1:08 a.m.