Hi all,
I am working on a set of GRASS for territorial analysis.
Does anyone here know any GRASS modules/add-ons that do the following:
1. Sort all cells in an input raster map into n categories so
that each category contains (approximately) the same number of
cells; with no data range overlap between categories.
2. Given a CELL type raster MAP containing category IDs and any
number of additional raster maps B,C,.., count the number of cells
from B,C,.. for each category in A and report per-category statistics.
If B,C,.. are CELL type maps, then statistics need to include the set
of cell values for each category in A; if they are DCELL, then
range, avg, etc. are needed.
???
If not, I will write them now.
Thanks,
Ben
--
Benjamin Ducke
Senior Geospatial Consultant
Oxford Archaeology
Janus House
Osney Mead
OX2 0ES
Oxford, U.K.
Tel: +44 (0)1865 263 800 (switchboard)
Tel: +44 (0)1865 980 758 (direct)
Fax :+44 (0)1865 793 496
benjamin.ducke@oxfordarch.co.uk
------
Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://iso26300.info for more information.
On 14/05/09 10:03, Benjamin Ducke wrote:
Hi all,
I am working on a set of GRASS for territorial analysis.
Does anyone here know any GRASS modules/add-ons that do the following:
1. Sort all cells in an input raster map into n categories so
that each category contains (approximately) the same number of
cells; with no data range overlap between categories.
IIUC, you are speaking about quantiles. I guess it shouldn't be too hard to extend r.quantile to print the number of cells in each quantile.
2. Given a CELL type raster MAP containing category IDs and any
number of additional raster maps B,C,.., count the number of cells
from B,C,.. for each category in A and report per-category statistics.
If B,C,.. are CELL type maps, then statistics need to include the set
of cell values for each category in A; if they are DCELL, then
range, avg, etc. are needed.
Doesn't r.statistics do just that ?
Moritz
You are right, r.quantile and r.statistics do all the things I need!
Thanks much,
Ben
Moritz Lennert wrote:
On 14/05/09 10:03, Benjamin Ducke wrote:
Hi all,
I am working on a set of GRASS for territorial analysis.
Does anyone here know any GRASS modules/add-ons that do the following:
1. Sort all cells in an input raster map into n categories so
that each category contains (approximately) the same number of
cells; with no data range overlap between categories.
IIUC, you are speaking about quantiles. I guess it shouldn't be too hard to extend r.quantile to print the number of cells in each quantile.
2. Given a CELL type raster MAP containing category IDs and any
number of additional raster maps B,C,.., count the number of cells
from B,C,.. for each category in A and report per-category statistics.
If B,C,.. are CELL type maps, then statistics need to include the set
of cell values for each category in A; if they are DCELL, then
range, avg, etc. are needed.
Doesn't r.statistics do just that ?
Moritz
--
Benjamin Ducke
Senior Geospatial Consultant
Oxford Archaeology
Janus House
Osney Mead
OX2 0ES
Oxford, U.K.
Tel: +44 (0)1865 263 800 (switchboard)
Tel: +44 (0)1865 980 758 (direct)
Fax :+44 (0)1865 793 496
benjamin.ducke@oxfordarch.co.uk
------
Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://iso26300.info for more information.