Skip to content

Commit

Permalink
Initial Healed HAND
Browse files Browse the repository at this point in the history
  • Loading branch information
hhs732 committed Apr 23, 2024
1 parent 4645b2d commit 89109e7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/delineate_hydros_and_produce_HAND.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,13 @@ python3 $srcDir/add_crosswalk.py \
-e $min_catchment_area \
-g $min_stream_length


## HEALED HAND -- REMOVES HYDROCONDITIONING ARTIFACTS ##
if ["$healed_hand_hydrocondition" = "True"] && [ -f $tempCurrentBranchDataDir/dem_thalweg_cond_$current_branch_id.tif ] ; then
if ["$healed_hand_hydrocondition" = "True"] ; then #&& [ -f $tempCurrentBranchDataDir/dem_thalwegCond_$current_branch_id.tif ]
echo -e $startDiv"Healed HAND to Remove Hydro-conditioning Artifacts $hucNumber $current_branch_id"
gdal_calc.py --quiet --type=Float32 --overwrite --co "COMPRESS=LZW" --co "BIGTIFF=YES" --co "TILED=YES" \
-hr $tempCurrentBranchDataDir/rem_zeroed_masked_$current_branch_id.tif \
-d $tempCurrentBranchDataDir/dem_meters_$current_branch_id.tif \
-dt $tempCurrentBranchDataDir/dem_thalweg_cond_$current_branch_id.tif \
-dt $tempCurrentBranchDataDir/dem_thalwegCond_$current_branch_id.tif \
--calc="hr+(d-dt)" --NoDataValue=$ndv \
--outfile=$tempCurrentBranchDataDir/"rem_zeroed_masked_$current_branch_id.tif"
fi
Expand Down

0 comments on commit 89109e7

Please sign in to comment.