This repository was archived by the owner on Jul 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -387,11 +387,11 @@ function find_optimal_site_alignment(
387
387
suit_threshold:: Float64 = 0.7
388
388
):: DataFrame
389
389
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
391
391
)
392
392
393
393
search_box = initial_search_box (
394
- (search_pixels . lons[1 ], search_pixels . lats[1 ]),
394
+ (lookup_tbl . lons[1 ], lookup_tbl . lats[1 ]),
395
395
x_dist,
396
396
y_dist,
397
397
target_crs
Original file line number Diff line number Diff line change @@ -92,8 +92,10 @@ function assess_region(
92
92
end
93
93
94
94
function assess_sites (params:: SuitabilityAssessmentParameters )
95
+ regional_raster = params. region_data. raster_stack
95
96
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 )
97
99
region = params. region
98
100
99
101
@debug " $(now ()) : Assessing criteria table for $(region) "
You can’t perform that action at this time.
0 commit comments