Changes between Version 7 and Version 8 of HowToTestGrass6
- Timestamp:
- 04/20/08 05:04:14 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowToTestGrass6
v7 v8 119 119 }}} 120 120 121 Tests: navigate with the puck, interrogate map etc. (ADD MORE)121 Tests: navigate with the puck, interrogate map, etc. (ADD MORE) 122 122 123 123 ''Expected result: should not crash at all but show maps as expected'' … … 129 129 === Raster algebra === 130 130 131 * r.mapcalc 131 Normalized Differences Vegetation Index (NDVI) from LANDSAT-TM7: 132 133 {{{ 134 # set current region/resolution to map: 135 g.region rast=lsat7_2002_40 -p 136 # display metadata: 137 r.info -h lsat7_2002_40 138 # generate NDVI: 139 r.mapcalc "ndvi = 1.0 * (lsat7_2002_40 - lsat7_2002_30) / (lsat7_2002_40+ lsat7_2002_30)" 140 r.info -r ndvi 141 r.colors ndvi color=ndvi 142 143 # display 2D: 144 d.mon x0 145 d.rast.leg ndvi 146 d.vect streets_wake 147 # display 3D: 148 nviz elevation col=ndvi vect=streets_wake 149 }}} 150 151 ''Expected results: the NDVI map should be colorized in near natural colors'' 132 152 133 153 === Raster statistics === … … 142 162 143 163 * extract large streets from "streets_wake" 164 165 === SQL support === 166 167 {{{ 168 g.region vect=schools_wake -p 169 d.erase 170 171 # show all schools in Wake County 172 d.vect schools_wake col=red icon=basic/circle siz=5 173 174 # show a subset of all elementary schools in Raleigh 175 d.vect schools_wake where="ADDRCITY='Raleigh' and GLEVEL='E'" 176 }}} 144 177 145 178 === Vector statistics ===