1r.bitpattern(1) Grass User's Manual r.bitpattern(1)
2
3
4
6 r.bitpattern - Compares bit patterns with a raster map
7
9 raster
10
12 r.bitpattern
13 r.bitpattern help
14 r.bitpattern [-q] input=name output=name pattern=integer patval=integer
15 [--overwrite]
16
17 Flags:
18 -q Quiet
19
20 --overwrite
21
22 Parameters:
23 input=name
24 Name of input raster map
25
26 output=name
27 Name for output raster map
28
29 pattern=integer
30 Bit pattern position(s)
31
32 patval=integer
33 Bit pattern value
34
36 r.bitpattern performs bit pattern comparisons. The module can be used
37 to pixelwise verify a satellite image for low quality pixels if a Qual‐
38 ity Control Bit Index map is provided (e.g. as for MODIS sensor maps).
39 The functionality is two-fold:
40
41 1 define position: set bit(s) to 1 which shall match, then convert
42 this position pattern to integer, set pattern= parameter with
43 that integer value
44
45 2 define pattern *value* which should be in that position: first
46 bit pattern of value, convert to integer, set patval= parameter
47
48 If several bitpatterns have to be tested, the resulting maps can be
49 used to exclude low quality pixel in the input satellite image using
50 r.mapcalc (OR and NOT operators).
51
53 1 define position:
54 xx xx 1x xx
55 binary: 1000 -> integer: 8 -> pattern=8
56
57
58 2 define value:
59 Ex.: we want to check for 0 in that position
60 xx xx 0x xx
61 binary: 0000 -> integer: 0 -> patval=0
62 if value can be arbitray (0/1), then assume 0 value
63
64
66 r.mapcalc
67
69 Radim Blazek, Markus Neteler
70
71 Last changed: $Date: 2005/08/10 09:15:03 $
72
73 Full index
74
75
76
77GRASS 6.2.2 r.bitpattern(1)