Skip to content

Commit

Permalink
Added ignored_ids option
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Sep 27, 2022
1 parent ff743a9 commit dcdbfff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lidar/filling.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ def extract_sinks_by_huc8_batch(
reverse=False,
error_file=None,
ignore_warnings=True,
ignored_ids=[],
overwrite=False,
):
"""Extract sinks from NED by HUC8.
Expand Down Expand Up @@ -596,6 +597,8 @@ def extract_sinks_by_huc8_batch(

for index, huc8 in enumerate(huc_ids):
print(f"Processing {index+1}:{len(huc_ids)}: {huc8} ...")
if huc8 in ignored_ids:
continue
filename = os.path.join(out_dir, str(huc8) + ".shp")
if not os.path.exists(filename) or (os.path.exists(filename) and overwrite):
extract_sinks_by_huc8(
Expand Down

0 comments on commit dcdbfff

Please sign in to comment.