Skip to content

Commit

Permalink
Closes #30
Browse files Browse the repository at this point in the history
Specification of integer as argument to flow accumulation seems to resolve the issue
  • Loading branch information
garnerc committed Dec 7, 2018
1 parent fec990f commit 0ee50ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dem_2_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ def flow_parameters(config_path):

# Flow Accumulation
logging.info('\nCalculating initial flow accumulation')
flow_acc_full_obj = arcpy.sa.FlowAccumulation(flow_dir_obj)
flow_acc_full_obj = arcpy.sa.FlowAccumulation(flow_dir_obj,'','INTEGER')
logging.info(' Only keeping flow_acc >= {}'.format(flow_acc_threshold))
flow_acc_full_obj = arcpy.sa.Con(
flow_acc_full_obj >= flow_acc_threshold, flow_acc_full_obj)
Expand Down

0 comments on commit 0ee50ba

Please sign in to comment.