From add68497be6865d1c4ef00ca41c489e73e389215 Mon Sep 17 00:00:00 2001 From: itati01 Date: Mon, 17 Jan 2022 08:38:02 +0100 Subject: [PATCH] removed comments on efficiency grids for pull request --- data/dinf_eff.tif | Bin 125262 -> 0 bytes data/eff.tif | Bin 3853 -> 0 bytes tests/test_grid.py | 20 +------------------- 3 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 data/dinf_eff.tif delete mode 100644 data/eff.tif diff --git a/data/dinf_eff.tif b/data/dinf_eff.tif deleted file mode 100644 index 26d4866c6f682a9808fccb411d6971b9b3598ec2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 125262 zcmeIyJ!lkZ9LMozHX0L*hYBft2}H!ggA{_wS*XcrPQu|rP`RW~un@6Gp=cqTV0>Y< zP_Xd8B1J$CM0^RHpoOS~f`V`s78Vv3igH|Gp z@?+^Lr7SL`>L^vFYpH6_)0u1Sxj%D9dv31loHh5(nwQU-e{RnUvwq90d22PN9L>F_ zwNi%L^V?kSXs_wW{KLtf(mdaoQ_6``J*6}A0>r_8q+JtbdJ*3T_vrcrDC zl3y}UUaqx1JFq4Xn@85_|NRc?-KEqQq(!MWElGW8MOu~OqP{u}q`0WBOB>S0G?a$Z zNZOu8)2=k0cBj2*UpkN`(!q2j1#$gYnoOtD*>o;lNEg$kG?k{)m2@>-Pc!Lux|{B$ zhv`vzlAfjK=|y^(UZvORO?sdHO&`+7^f`S=Rh8eDy3>NRDD|c#sV}WatJ3N;kk+Ji zX+zqWhSG2vN!!zC+LgxB?zA`UO9#?KI+%{6qv=?hOsCV?bS_;;7t^IQm8R2`bTwU1 zGwF7^o9?BD=}~%;o~7sMMS7WDrPt|ARhBJ%_t#|o*UjI~&A;~dj0 z;_x4Rmk%|+Z}88ZV?)1f+tL5i+TU||{JvW6V3YU20s{;%zyJdbFu(u<3^2d|0}L?0 z00Rs#zyJdbFu(u<3^2d|0}L?000Rs#zyJdbFu(u<3^2d|0}L?000Rs#zyJdbFu(u< z3^2d|0}L?000Rs#zyJdbFu(u<3^2d|0}L?000Rs#zyJdbFu(u<3^2d|0}L?000Rs# zzyJdbFu(u<3^2d|0}L?000Rs#zyJdbFu(u<3^2d|0}L?000Rs#zyJdbFu(u<3^2d| z0}L?000Rs#zyJdbFu(u<3^2d|0}L?000Rs#zyJdbFu(u<3^2d|0}L?000Rs#zyJdb zFu(u<3^2d|0}L?000Rs#zyJdbFu(u<3^2d|0}L?000Rs#zyJdbFu(u<3^2d|0}L?0 z00Rs#zyJdbFu(u<3^2d|0}L?000Rs#zyJdbFu(u<3^2d|0}L?000Rs#zyJdbFu(u< z3^2d|0}L?000Rs#zyJdbFu(u<3^2d|0}L?000Rs#zyJdbFu(u<3^2d|0}L?000Rs# zzyJdbFu(u<3^2d|0}L?000Rs#zyJdbFu(u<3^2d|0}L?000Rs#zyJdbFu(u<3^2d| z0}L?000Rs#zyJdbFu(u<3^2d|0}L?000Rs#zyJdbFu(u<3^2d|0}L?000Rs#zyJdb zFu(u<3^2d|0}L?000Rs#zyJdbFu(u<3^2d|0}L?000Rs#zyJdbFu(u<3^2d|0}L?0 z00Rs#zyJdbFu(u<3^2d|0}L?000Rs#zyJdbFu(u<3^2d|0}L?000Rs#zyJdbFu(u< M3^2d|1OLsySHh($ diff --git a/data/eff.tif b/data/eff.tif deleted file mode 100644 index b2836cbc08e2647c1c64370fea39d5a522ba0151..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3853 zcmeI!|4S2b9LMqZ-L2c4w^4$NpkxrNhzbXy5n5Y6WJ8e1Fn>}aSzn+fQR)vRYT^1J zh7b(;MF__bf;FM`lgvS}`XwWXg;66g_Di%M_e&%_Z(QI{`vcky9`|{1pU>w$yU%?- z$3-GX#3dqaB8nyo=@tjY%2&y%mHpIdRyKR+RyOO(X@-FK3T5T%i z{X5$9S(&afWMz%)ePD=L1~|+=G(;z#BEN`h;wQ(**|;HQzYKXbuGa4)Po7Ju^}fe~ zRPsCAKxc!xM*aSmxpoDD%crb&Q#1e|A!sp~# zh$4X;%FtaR$1#i85=$te3ZKFFh$4X; z%FsQGk73LpjSbY$;bnZpkVGC81p2SNoEscCefiyuS7ynSHT->Ep6GLrjTBDae=>IT zdMNa-u~Oe*OagPNuyWZFl)YKee?O#*Pb(rU!AkTsy@-f!zg@{-|q05-rJ1r z!XD`~-ej+oJ)0|cKU`QDA9%L-V@ 11300) # ...with efficiency - # eff = d.eff - # set nodata to 1 - # eff = grid.view(eff) - # eff[eff == eff.nodata] = 1 - # we set the efficiency for starting cells to 0 # this will reduce the flow accumulation by the number of starting cells start_cells = np.where(acc_d8 == 1) @@ -316,7 +298,7 @@ def test_to_ascii(): fdir = d.fdir grid.clip_to(catch) # np.float is depreciated - grid.to_ascii(fdir, 'test_dir.asc', target_view=fdir.viewfinder, dtype=float) + grid.to_ascii(fdir, 'test_dir.asc', target_view=fdir.viewfinder, dtype=np.float64) fdir_out = grid.read_ascii('test_dir.asc', dtype=np.uint8) assert((fdir_out == fdir).all()) grid.to_ascii(fdir, 'test_dir.asc', dtype=np.uint8)