@@ -54,7 +54,7 @@ Option 1: from vector data to mask
54
54
55
55
FORCE comes with a program to generate processing masks from vector data (e.g. shapefile or geopackage):
56
56
57
- .. code-block :: bash
57
+ .. code-block :: none
58
58
59
59
force-cube -h
60
60
@@ -101,7 +101,7 @@ Do not worry about data volume when converting from vector to raster data, becau
101
101
102
102
In the following example, we generate a processing mask for the administrative area of Vienna, Austria.
103
103
104
- .. code-block:: bash
104
+ .. code-block :: none
105
105
106
106
force-cube -o /data/europe/mask vienna.shp
107
107
@@ -113,7 +113,7 @@ In the following example, we generate a processing mask for the administrative a
113
113
114
114
In this example, Vienna is covered by four tiles, a cubed GeoTiff was generated in each tile:
115
115
116
- .. code-block:: bash
116
+ .. code-block :: none
117
117
118
118
ls /data/europe/mask/X*/vienna.tif
119
119
@@ -125,7 +125,7 @@ In this example, Vienna is covered by four tiles, a cubed GeoTiff was generated
125
125
126
126
For speedy visuailzation, build overviews and pyramids:
127
127
128
- .. code-block:: bash
128
+ .. code-block :: none
129
129
130
130
force-pyramid /data/europe/mask/X*/*.tif
131
131
force-mosaic /data/europe/mask
@@ -153,7 +153,7 @@ Option 2: from raster data to mask
153
153
154
154
FORCE comes with a program to generate processing masks from a raster image with continuous values:
155
155
156
- .. code-block:: bash
156
+ .. code-block :: none
157
157
158
158
force-procmask -h
159
159
@@ -193,7 +193,7 @@ which gives the percentages of built-up land (urban), high vegetation (trees), a
193
193
194
194
In our case, the data are already in datacube format, covering 597 tiles:
195
195
196
- .. code-block :: bash
196
+ .. code-block :: none
197
197
198
198
cd /data/europe/pred
199
199
ls X*/*.tif | head
@@ -218,7 +218,7 @@ If this is a multiband file, the desired band can be specified with the ``-l`` o
218
218
In our example input image, the tree percentage is in band 2 and the percentage values are scaled by 100 (i.e. 100% = 10000).
219
219
To generate a mask with tree cover > 30%, we use the following:
220
220
221
- .. code-block :: bash
221
+ .. code-block :: none
222
222
223
223
cd /data/europe/pred
224
224
@@ -239,7 +239,7 @@ To generate a mask with tree cover > 30%, we use the following:
239
239
240
240
We now have one cubed mask for each input image in the mask directory:
241
241
242
- .. code-block :: bash
242
+ .. code-block :: none
243
243
244
244
ls /data/europe/mask/X*/forest-mask.tif | wc -l
245
245
@@ -248,7 +248,7 @@ We now have one cubed mask for each input image in the mask directory:
248
248
249
249
For speedy visuailzation, build overviews and pyramids:
250
250
251
- .. code-block :: bash
251
+ .. code-block :: none
252
252
253
253
force-pyramid /data/europe/mask/X*/forest-mask.tif
254
254
force-mosaic /data/europe/mask
@@ -279,7 +279,7 @@ Processing masks can easily be used in ``force-higher-level`` by setting the ``D
279
279
They are the parent directory of the cubed masks, and the basename of the masks, respectively.
280
280
To use the Vienna mask from above:
281
281
282
- .. code-block :: bash
282
+ .. code-block :: none
283
283
284
284
DIR_MASK = /data/europe/mask
285
285
BASE_MASK = vienna.tif
0 commit comments