Skip to content

Commit

Permalink
add log10(largest_area)
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskaus committed Jul 5, 2024
1 parent 6e1b1bb commit 23d9d4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/WaterFlow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ function waterflows(Topo::GeoData, flowdir_fn= WhereTheWaterFlows.d8dir_feature;
largest_area[.!largest_catchment] .= NaN

log10_area = log10.(area)

Topo_water = addfield(Topo,(;area, slen, dir, nout, nin, c, cellarea_m2, catchment_large, log10_area, largest_catchment, largest_area))
log10_largest_area = log10.(largest_area)

Topo_water = addfield(Topo,(;area, slen, dir, nout, nin, c, cellarea_m2, catchment_large, log10_area, largest_catchment, largest_area, log10_largest_area))
return Topo_water, sinks, pits, bnds
end

0 comments on commit 23d9d4a

Please sign in to comment.