Re: [GRASS-user] r.li circular window and not integer radius
On Fri, Aug 22, 2014 at 7:48 PM, Sergio Vignali vignalisergi...@gmail.com wrote: the version is the 6.4.4, but I think if I use an integer radius it's only a little approximation... Could you explain a bit more what you mean with integer radius? 2014-08-22 12:18 GMT+02:00 Sergio Vignali vignalisergi...@gmail.com: Hi, I want to use the r.li module in grass with a circular moving window to calculate the Shannon index, but I need to have a window of 1 km2 so I need of a not integer radius. This seems not possible, any suggestion to do that? Do you refer to the choices in Definition of creation of sampling area: - Whole map layer: use entire area selected above, - Regions: select one to many subareas via mouse, - Sample units: automated selection of sampling area (for details see below) - Random nonoverlapping, [...] (List from http://grass.osgeo.org/grass64/manuals/r.li.setup.html) Would you like to see also Circle there? Perhaps it could be added to http://grass.osgeo.org/grass70/manuals/g.gui.rlisetup.html Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] r.info output after r.reclass
Hi again, I am using [1] as rules for r.reclass to shift a map's value range of -100..100 to 0..200. After reclassification, r.info shows the result as quoted in [2]. I am missing the line saying that -100 has been reclassified to 0. Why is this line missing? Wondering, Hermann [1] -100 = 0 -99 = 1 ... 99 = 199 100 = 200 [2] Range of data:min = 0 max = 200 ... CategoryOriginal categories 1 -99 2 -98 3 -97 ... -- View this message in context: http://osgeo-org.1560.x6.nabble.com/r-info-output-after-r-reclass-tp5158003.html Sent from the Grass - Users mailing list archive at Nabble.com. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] r.info output after r.reclass
Hermann wrote: I am using [1] as rules for r.reclass to shift a map's value range of -100..100 to 0..200. fyi, see also r.recode, r.rescale, and r.mapcalc. After reclassification, r.info shows the result as quoted in [2]. I am missing the line saying that -100 has been reclassified to 0. Why is this line missing? I don't know, you might look into the $MAPSET/cellhd/mapname file and look for clues. It may be a hold-over from before GRASS 5, when '0' was treated as NULL. the important thing is that 'r.info -r' and r.univar show the correct values. Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] r.info output after r.reclass
On 2014-08-24 5:44, Hamish wrote: Hermann wrote: I am using [1] as rules for r.reclass to shift a map's value range of -100..100 to 0..200. fyi, see also r.recode, r.rescale, and r.mapcalc. I am aware. I don't want to create new map with 200 000 x 200 000 px (all of Europe in 20m resolution). I just want to quickly reclassify before exporting into GeoTIFF with type=Byte. After reclassification, r.info shows the result as quoted in [2]. I am missing the line saying that -100 has been reclassified to 0. Why is this line missing? I don't know, you might look into the $MAPSET/cellhd/mapname file and look for clues. It may be a hold-over from before GRASS 5, when '0' was treated as NULL. the important thing is that 'r.info -r' and r.univar show the correct values. Thanks for the hints. Is there any intention to get rid of the left-overs from GRASS 5, perhaps in GRASS 8 ? Hermann ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user