Skip to content

Commit

Permalink
Adding accessible urban nature to per-natureclass mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
phargogh committed Jun 29, 2023
1 parent 1f93d99 commit 9d4ac3d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/natcap/invest/urban_nature_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,22 @@ def execute(args):
dependent_task_list=[lulc_mask_task]
)

accessible_urban_nature_path = os.path.join(
intermediate_dir,
f'accessible_urban_nature_lucode_{lucode}{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]
)

urban_nature_population_ratio_path = os.path.join(
intermediate_dir,
f'urban_nature_population_ratio_lucode_{lucode}{suffix}.tif')
Expand Down

0 comments on commit 9d4ac3d

Please sign in to comment.