Debian Codegraph @

raster/r.li/TODO

raw
1 TODO list
2 =========
3
4 GRASS 7:
5 # TODO: change the examples to North Carolina wherever possible:
6
7 # Spearfish tests
8 g.region raster=landcover.30m -p
9 r.mapcalc "forests = if(landcover.30m >= 41 && landcover.30m <= 43,1,null())"
10 d.mon wx0
11 d.rast forests
12
13 # g.gui.rlisetup:
14 # created as described in EXAMPLES, moving window, in g.gui.rlisetup.html:
15 echo "SAMPLINGFRAME 0|0|1|1
16 SAMPLEAREA -1|-1|0.015021459227467811|0.011058451816745656
17 MOVINGWINDOW" > $HOME/.grass8/r.li/movwindow7
18
19 r.li.patchdensity forests conf=movwindow7 output=forests_p_dens7
20 d.rast.leg forests_p_dens7
21
22 r.to.vect forests out=forests type=area
23 d.vect forests type=boundary
24
25 ######## TODO: CHECK THIS:
26
27 # Test with raster mask
28 r.mask raster=fields
29 r.li.patchdensity forests conf=movwindow7 output=forests_p_dens7mask --o
30 d.erase
31 d.rast.leg forests_p_dens7mask
32 r.mask -r
33 # -> no negative values! but mask is respected
34
35 # zero data test
36 r.mapcalc "forests = 0"
37 r.li.patchdensity forests conf=movwindow7 output=forests_p_dens7 --o
38 d.erase
39 d.rast.leg forests_p_dens7mask
40 r.info -r forests_p_dens7
41 min=0
42 max=204.081632653061
43
44 ========================
45 North Carolina tests
46
47 # Tests with return an ASCII output file
48 sh ./r.li.testing_nc_asc.sh
49
50 ---------
51
52 echo "SAMPLINGFRAME 0|0|1|1
53 SAMPLEAREA 0.0|0.0|1.0|1.0" > $HOME/.grass8/r.li/landsat_test
54
55 g.region raster=lsat7_2002_40 -p
56 r.li.shannon input=lsat7_2002_40 conf=landsat_test output=landsat_shannon
57 --> Result written to ASCII file <$HOME/.grass8/r.li/output/landsat_shannon>