~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to raster/r.li/TODO

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
TODO list
2
2
=========
3
3
 
 
4
GRASS 7:
 
5
 * r.li.daemon: Uses UNIX sockets, replace or figure out how
 
6
   to use them on Windows
 
7
    --> 4/2014: still an issue?
 
8
 
 
9
 * r.li.setup: Shell scripts, Tcl/Tk, Xmonitors to be replaced
 
10
   by Python + wxPython equivalents.
 
11
   See Luca D's prototype in  trunk/gui/wxpython/rlisetup
 
12
   and  http://grass.osgeo.org/grass70/manuals/g.gui.rlisetup.html
 
13
    --> 4/2014: still an issue?
 
14
 
4
15
# TODO: change the examples to North Carolina wherever possible:
5
16
 
6
17
# Spearfish tests
7
 
g.region rast=landcover.30m -p
 
18
g.region raster=landcover.30m -p
8
19
r.mapcalc "forests = if(landcover.30m >= 41 && landcover.30m <= 43,1,null())"
9
 
d.mon x0
 
20
d.mon wx0
10
21
d.rast forests
11
22
 
12
 
# r.li.setup:
13
 
# created as described in EXAMPLES, moving window, in r.li.setup/description.html:
 
23
# g.gui.rlisetup:
 
24
# created as described in EXAMPLES, moving window, in g.gui.rlisetup.html:
14
25
echo "SAMPLINGFRAME 0|0|1|1
15
26
SAMPLEAREA -1|-1|0.015021459227467811|0.011058451816745656
16
 
MOVINGWINDOW" > $HOME/.r.li/history/movwindow7
 
27
MOVINGWINDOW" > $HOME/.grass7/r.li/movwindow7
17
28
 
18
 
r.li.patchdensity forests conf=movwindow7 out=forests_p_dens7
 
29
r.li.patchdensity forests conf=movwindow7 output=forests_p_dens7
19
30
d.rast.leg forests_p_dens7
20
31
 
21
 
r.to.vect forests out=forests feature=area
 
32
r.to.vect forests out=forests type=area
22
33
d.vect forests type=boundary
23
34
 
24
 
## CHECK THIS:
 
35
######## TODO: CHECK THIS:
25
36
 
26
37
# MASK test
27
38
g.copy rast=fields,MASK
28
 
r.li.patchdensity forests conf=movwindow7 out=forests_p_dens7mask --o
 
39
r.li.patchdensity forests conf=movwindow7 output=forests_p_dens7mask --o
 
40
d.erase
29
41
d.rast.leg forests_p_dens7mask
30
42
# -> no negative values! but MASK is respected
31
43
 
32
44
# zero data test
33
 
r.mapcalc forests=0
34
 
r.li.patchdensity forests conf=movwindow7 out=forests_p_dens7 --o
 
45
r.mapcalc "forests = 0"
 
46
r.li.patchdensity forests conf=movwindow7 output=forests_p_dens7 --o
 
47
d.erase
35
48
d.rast.leg forests_p_dens7mask
36
49
r.info -r forests_p_dens7
37
 
min=19.841270
38
 
max=19.841270
39
 
# -> all cells are 19.841270 ?!
40
 
 
 
50
min=0
 
51
max=204.081632653061
41
52
 
42
53
========================
43
54
North Carolina tests
46
57
sh ./r.li.testing_nc_asc.sh
47
58
 
48
59
---------
 
60
 
49
61
echo "SAMPLINGFRAME 0|0|1|1
50
 
SAMPLEAREA 0.0|0.0|1.0|1.0" > $HOME/.r.li/history/landsat_test
51
 
 
52
 
g.region rast=lsat7_2002_40 -p
53
 
r.li.shannon input=lsat7_2002_40 conf=landsat_test out=landsat_shannon
54
 
--> Result written to ASCII file <$HOME/.r.li/output/landsat_shannon>
 
62
SAMPLEAREA 0.0|0.0|1.0|1.0" > $HOME/.grass7/r.li/landsat_test
 
63
 
 
64
g.region raster=lsat7_2002_40 -p
 
65
r.li.shannon input=lsat7_2002_40 conf=landsat_test output=landsat_shannon
 
66
--> Result written to ASCII file <$HOME/.grass7/r.li/output/landsat_shannon>
 
67
 
 
68