Skip to content

Commit

Permalink
Adding accessible urban nature for pop groups.
Browse files Browse the repository at this point in the history
  • Loading branch information
phargogh committed Jun 29, 2023
1 parent 9d4ac3d commit 1226df6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/natcap/invest/urban_nature_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -1167,6 +1167,23 @@ def execute(args):
decayed_population_in_group_tasks = []
for pop_group in split_population_fields:
search_radius_m = search_radii_by_pop_group[pop_group]

accessible_urban_nature_path = os.path.join(
intermediate_dir,
f'accessible_urban_nature_to_{pop_group}{suffix}.tif')
_ = graph.add_task(
_convolve_and_set_lower_bound,
kwargs={
"signal_path_band": (urban_nature_pixels_path, 1),
"kernel_path_band": (kernel_paths[search_radius_m], 1),
"target_path": accessible_urban_nature_path,
"working_dir": intermediate_dir,
},
task_name='Accessible urban nature',
target_path_list=[accessible_urban_nature_path],
dependent_task_list=[urban_nature_reclassification_task]
)

decayed_population_in_group_path = os.path.join(
intermediate_dir,
f'distance_weighted_population_in_{pop_group}{suffix}.tif')
Expand Down

0 comments on commit 1226df6

Please sign in to comment.