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] [--verbose] [--quiet]
16
17 Flags:
18 -q
19 Quiet
20
21 --overwrite
22 Allow output files to overwrite existing files
23
24 --verbose
25 Verbose module output
26
27 --quiet
28 Quiet module output
29
30 Parameters:
31 input=name
32 Name of input raster map
33
34 output=name
35 Name for output raster map
36
37 pattern=integer
38 Bit pattern position(s)
39
40 patval=integer
41 Bit pattern value
42
44 r.bitpattern performs bit pattern comparisons. The module can be used
45 to pixelwise verify a satellite image for low quality pixels if a Qual‐
46 ity Control Bit Index map is provided (e.g. as for MODIS sensor maps).
47 The functionality is two-fold:
48
49 1 define position: set bit(s) to 1 which shall match, then convert
50 this position pattern to integer, set pattern= parameter with
51 that integer value
52
53 2 define pattern *value* which should be in that position: first
54 bit pattern of value, convert to integer, set patval= parameter
55
56 If several bitpatterns have to be tested, the resulting maps can be
57 used to exclude low quality pixel in the input satellite image using
58 r.mapcalc (OR and NOT operators).
59
61 1 define position:
62 xx xx 1x xx
63 binary: 1000 -> integer: 8 -> pattern=8
64
65
66 2 define value:
67 Ex.: we want to check for 0 in that position
68 xx xx 0x xx
69 binary: 0000 -> integer: 0 -> patval=0
70 if value can be arbitray (0/1), then assume 0 value
71
72
74 r.mapcalc
75
77 Radim Blazek, Markus Neteler
78
79 Last changed: $Date: 2005-08-10 11:15:03 +0200 (Wed, 10 Aug 2005) $
80
81 Full index
82
83 © 2003-2008 GRASS Development Team
84
85
86
87GRASS 6.3.0 r.bitpattern(1)