[GRASS-dev] Semantic of r.cross' -z flag
Nikos Alexandris
nik at nikosalexandris.net
Wed Sep 6 13:29:45 PDT 2017
I need help to understand r.cross' `-z` flag and the semantic(s) of the
zero-data values.
The following:
r.category geology_Test
217 CZfg
405 CZbg
766 CZg
r.category basins_1_2
1
2
r.cross input=geology_Test,basins_1_2 out=cross_Test --o
r.category cross_Test
0
1 CZfg; category 2
2 CZbg; category 1
3 CZbg; category 2
4 CZg; category 1
# Why is there a '0' above?
r.cross input=geology_Test,basins_1_2 out=cross_Test --o -z
r.category cross_Test
0
1 CZfg; category 2
2 CZbg; category 1
3 CZbg; category 2
4 CZg; category 1
# and then...
r.category basins_0_12
0 0
12 Twelve
r.cross input=geology_Test,basins_0_12 out=cross_Test --o
r.category cross_Test
0
1 CZfg; Twelve
2 CZbg; 0
3 CZbg; Twelve
4 CZg; 0
r.cross input=geology_Test,basins_0_12 out=cross_Test --o -z
r.category cross_Test
0
1 CZfg; Twelve
2 CZbg; 0
3 CZbg; Twelve
4 CZg; 0
Nikos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20170906/4b903759/attachment.sig>
More information about the grass-dev
mailing list