Skip to content
This repository was archived by the owner on Jul 11, 2025. It is now read-only.

Commit 606c315

Browse files
committed
Fixes
Signed-off-by: Peter Baker <peter.baker122@csiro.au>
1 parent a11ae41 commit 606c315

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/assessment_methods/best_fit_polygons.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,11 @@ function find_optimal_site_alignment(
387387
suit_threshold::Float64=0.7
388388
)::DataFrame
389389
max_count = (
390-
(x_dist * y_dist) / ceil(degrees_to_meters(res, mean(search_pixels.lats)))^2
390+
(x_dist * y_dist) / ceil(degrees_to_meters(res, mean(lookup_tbl.lats)))^2
391391
)
392392

393393
search_box = initial_search_box(
394-
(search_pixels.lons[1], search_pixels.lats[1]),
394+
(lookup_tbl.lons[1], lookup_tbl.lats[1]),
395395
x_dist,
396396
y_dist,
397397
target_crs

src/assessment_methods/site_identification.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ function assess_region(
9292
end
9393

9494
function assess_sites(params::SuitabilityAssessmentParameters)
95+
regional_raster = params.region_data.raster_stack
9596
target_crs = convert(EPSG, crs(regional_raster))
96-
suitability_threshold = params.suitability_threshold
97+
# convert suitability integer -> float 64
98+
suitability_threshold = float64(params.suitability_threshold / 100.0)
9799
region = params.region
98100

99101
@debug "$(now()) : Assessing criteria table for $(region)"

0 commit comments

Comments
 (0)