Skip to content

Commit

Permalink
updated usage example path
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraKeys-NOAA committed Apr 23, 2024
1 parent 94c7d8f commit 8741b4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/bridges/pull_osm_bridges.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def process_osm_bridges(wbd_file, location, output_lines_location, output_midpts
if __name__ == "__main__":
'''
Sample usage (min params):
python3 /foss_fim/data/bridges/pull_osm_bridges.py
python3 data/bridges/pull_osm_bridges.py
-w /data/inputs/wbd/wbdhu8_a_us_oct2018.gdb
-p /data/inputs/osm/
-l /data/inputs/osm/osm_bridges.shp
Expand Down
5 changes: 4 additions & 1 deletion src/heal_bridges_osm.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ def process_bridges_in_huc(
}

################# rasterize new hand values ####################
# TODO: This little section and the next heal/update section are where we would
# potentially pull lidar data into HAND grid instead of rasterizing the max HAND
# data.
with rasterio.open(bridge_lines_raster_filename, 'w+', **out_meta) as out:
out_arr = out.read(1)
# this is where we create a generator of geom, value pairs to use in rasterizing
Expand Down Expand Up @@ -136,7 +139,7 @@ def burn_bridges(
if __name__ == "__main__":
'''
Sample usage (min params):
python3 /data/bridges/heal_bridges_osm.py
python3 src/heal_bridges_osm.py
-g /data/inputs/hand_grids_here
-s /data/inputs/tx_hucs.shp
-o /data/inputs/osm/
Expand Down

0 comments on commit 8741b4b

Please sign in to comment.