-
Notifications
You must be signed in to change notification settings - Fork 0
/
ncgis2023.html
649 lines (546 loc) · 22.4 KB
/
ncgis2023.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Tips and Tricks for GRASS GIS 8.2</title>
<meta name="description" content="Slides for a talk covering how to get the best out of the current GRASS GIS functionality and providing an outlook to the future (March 2023)">
<meta name="author" content="Vaclav Petras">
<link rel="stylesheet" href="dist/reset.css">
<link rel="stylesheet" href="dist/reveal.css">
<link rel="stylesheet" href="css/theme/osgeo.css" id="theme">
<link rel="stylesheet" href="css/nouislider.min.css" id="slide">
<!-- Theme used for syntax highlighted code -->
<link rel="stylesheet" href="plugin/highlight/monokai.css" id="highlight-theme">
<!-- For chalkboard plugin -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<!-- If the query includes 'print-pdf', include the PDF print sheet -->
<script>
if( window.location.search.match( /print-pdf/gi ) ) {
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'css/print/pdf.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
}
</script>
<!-- <link href="https://fonts.googleapis.com/css?family=Miriam+Libre" rel="stylesheet">-->
<style>
/* miriam-libre-regular - latin */
@font-face {
font-family: 'Miriam Libre';
font-style: normal;
font-weight: 400;
src: url('lib/font/miriam-libre/miriam-libre-v1-latin-regular.eot'); /* IE9 Compat Modes */
src: local('Miriam Libre'), local('MiriamLibre-Regular'),
url('lib/font/miriam-libre/miriam-libre-v1-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('lib/font/miriam-libre/miriam-libre-v1-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('lib/font/miriam-libre/miriam-libre-v1-latin-regular.woff') format('woff'), /* Modern Browsers */
url('lib/font/miriam-libre/miriam-libre-v1-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('lib/font/miriam-libre/miriam-libre-v1-latin-regular.svg#MiriamLibre') format('svg'); /* Legacy iOS */
}
/* miriam-libre-700 - latin */
@font-face {
font-family: 'Miriam Libre';
font-style: normal;
font-weight: 700;
src: url('lib/font/miriam-libre/miriam-libre-v1-latin-700.eot'); /* IE9 Compat Modes */
src: local('Miriam Libre Bold'), local('MiriamLibre-Bold'),
url('lib/font/miriam-libre/miriam-libre-v1-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('lib/font/miriam-libre/miriam-libre-v1-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
url('lib/font/miriam-libre/miriam-libre-v1-latin-700.woff') format('woff'), /* Modern Browsers */
url('lib/font/miriam-libre/miriam-libre-v1-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
url('lib/font/miriam-libre/miriam-libre-v1-latin-700.svg#MiriamLibre') format('svg'); /* Legacy iOS */
}
/* sintony-regular - latin */
@font-face {
font-family: 'Sintony';
font-style: normal;
font-weight: 400;
src: url('lib/font/sintony/sintony-v4-latin-regular.eot'); /* IE9 Compat Modes */
src: local('Sintony'),
url('lib/font/sintony/sintony-v4-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('lib/font/sintony/sintony-v4-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('lib/font/sintony/sintony-v4-latin-regular.woff') format('woff'), /* Modern Browsers */
url('lib/font/sintony/sintony-v4-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('lib/font/sintony/sintony-v4-latin-regular.svg#Sintony') format('svg'); /* Legacy iOS */
}
/* sintony-700 - latin */
@font-face {
font-family: 'Sintony';
font-style: normal;
font-weight: 700;
src: url('lib/font/sintony/sintony-v4-latin-700.eot'); /* IE9 Compat Modes */
src: local('Sintony Bold'), local('Sintony-Bold'),
url('lib/font/sintony/sintony-v4-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('lib/font/sintony/sintony-v4-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
url('lib/font/sintony/sintony-v4-latin-700.woff') format('woff'), /* Modern Browsers */
url('lib/font/sintony/sintony-v4-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
url('lib/font/sintony/sintony-v4-latin-700.svg#Sintony') format('svg'); /* Legacy iOS */
}
.reveal li > ul {
font-size: 85%;
line-height: 110%;
}
.reveal small {
display: inline-block;
font-size: smaller;
line-height: 1.2em;
vertical-align: baseline;
margin: 0.1em; }
.reveal small * {
vertical-align: baseline; }
.reveal .credit {
font-size: small;
color: gray;
margin: 0.1em;
}
.reveal .right, .reveal .textimg > img, .reveal .textimg > video, .reveal .textimg > iframe, .reveal .imgtext > p, .reveal .imgtext > ul, .reveal .imgtext > ol, .reveal .imgtext > div {
float: right;
text-align: left;
max-width: 47%;
}
.reveal .left, .reveal .imgtext > img, .reveal .imgtext > video, .reveal .imgtext > iframe, .reveal .textimg > p, .reveal .textimg > ul, .reveal .textimg > ol, .reveal .textimg > div {
float: left;
text-align: left;
max-width: 47%;
}
</style>
</head>
<body>
<div class="reveal">
<div class="slides">
<!--
The 8.2 version of GRASS GIS comes with a series of new features
such as straightforward data management interface and a package for Jupyter notebooks.
Many big data handling features from the previous versions are included and improved.
Python and REST APIs take the processing far beyond a common desktop use case.
This talk will cover how to get the best out of the current GRASS GIS functionality and will provide an outlook to the future.
Limited number of lifetime licenses will be given out to the audience during the talk (GNU GPL terms and conditions apply).
-->
<section>
<h1>Tips and Tricks for GRASS GIS 8.2</h1>
<p style="margin-top: 0.5em">
<a href="http://wenzeslaus.github.io/" style="font-weight: bold">
Vaclav (Vashek) Petras
</a>
</p>
<p class="title-foot">
<a href="http://geospatial.ncsu.edu/geoforall/" title="NCSU GeoForAll Lab">NCSU GeoForAll Lab</a>
at the
<a href="http://geospatial.ncsu.edu/" title="NCSU Center for Geospatial Analytics">Center for Geospatial Analytics</a>
<br>
<a href="http://www.ncsu.edu/" title="North Carolina State University">NC State University</a>
</p>
<img src="img/grass_gis.svg" class="stretch">
<p><small>NCGIS, March 8-10, 2023</small></p>
<p>
<a href="https://wenzeslaus.github.io/grass-gis-talks/ncgis2023.html">wenzeslaus.github.io/grass-gis-talks</a>
</section>
<section>
<h2>Vaclav (Vashek) Petras</h2>
<ul>
<li>Geospatial Research Software Engineer at NC State's Center for Geospatial Analytics
<li>BS & MS in Geoinformatics, Czech Technical University in Prague, Czechia,
PhD in Geospatial Analytics, NC State
<li>GRASS GIS: Development Team, Project Steering Committee
<li>OSGeo: Charter Member
</ul>
<img src="img/cli_tangible.png" class="stretch">
</section>
<section>
<h2>Pick Your Version of GRASS GIS</h2>
<ul>
<li>
7.8.8 Legacy, Spring 2023
<small>Maintained legacy version</small>
</li>
<li>
8.2.1 Current, January 2023
<small>Current version</small>
</li>
<li>
8.3.0 Preview, Daily
<small>Latest reviewed functional code</small>
<!--<small>Upcoming version, Spring 2023</small>-->
</li>
</ul>
<p><small>
major.minor.micro –
micro (x.y.z) brings fixes,
minor (x.y) brings features,
major (x) brings features and possibly backward incompatible changes
</small></p>
<br>
<img src="img/splash_screen.png" class="stretch">
</section>
<section>
<h2>Explore Both Core and Addons Tools</h2>
<ul>
<li>
Processing tools:
<b>400+</b> <a href="https://grass.osgeo.org/grass82/manuals/full_index.html">in core</a>,
<b>400+</b> <a href="https://grass.osgeo.org/grass82/manuals/addons/">addons</a>
</li>
<!--
<li>Content in each is directly driven by users</li>
<ul>
<li> → All-in-one software suite</li>
</ul>
-->
</ul>
<img src="img/gui_orange_viewsheds_buffer.png" class="stretch">
</section>
<section>
<h2>Use Data Management Panel</h2>
… and explore other panels.
<br>
<img src="img/gui_data_pane_blue_isochrones.png" class="stretch">
</section>
<section>
<h2>Switch to Single-Window Interface in 8.2</h2>
<p><em>Settings > Preferences > General > Use single-window mode</em></p>
<img src="img/single_window_8.2_dark.png" class="stretch">
</section>
<section>
<h2>Forget the Startup Screen</h2>
<img src="img/grass_startup_gone.png" class="stretch">
</section>
<section>
<h2>Follow Startup Tips</h2>
Initial project sets up automatically, but read the provided suggestions for next steps.
<br>
<img src="img/gui_first_time.png" class="stretch">
</section>
<section>
<h2>Use Mapsets to Organize Data</h2>
<p>
Use mapsets as subprojects to group related data.
<ul>
<li>Only data in the current mapset can be modified.</li>
<li>Data from other mapsets are accessible for reading.</li>
</ul>
</p>
<img src="img/mapsets_with_green_landscape.png" class="stretch">
</section>
<section>
<h2>Use Python to Automate Workflows</h2>
<p>
Automate both processing and visualization
</p>
<img src="img/jupyter_timeseries_viewshed.gif" class="stretch">
</section>
<section>
<h2>Use Jupyter Notebooks</h2>
<ul>
<li>Mix text, code, results & images.</li>
<li>Use for prototyping, reproducibility, or tutorials.</li>
<li>See <em>grass.jupyter</em> for easy integration.</li>
</ul>
<img src="img/jupyter_text_images_3d.png" class="stretch">
<p>
<a href="https://tinyurl.com/grass-jupyter-8-2">tinyurl.com/grass-jupyter-8-2</a>
</p>
</section>
<section>
<h2>Generate Quick Web Maps</h2>
<p>
Use <em>grass.jupyter</em> to quickly generate interactive web maps.
</p>
<img src="img/jupyter_interactive_viewshed.png" class="stretch">
</section>
<section>
<h2>Automate 3D Visualizations in Python</h2>
<p>
Use <em>grass.jupyter.Map3D</em> to generate 3D visualizations.
</p>
<img src="img/jupyter_3d_viewshed.png" class="stretch">
</section>
<section>
<h2>Check out the Command Line Interface</h2>
<p>
Underlying command is available at the bottom of the dialog.
</p>
<img src="img/copy_command.png" class="stretch">
</section>
<section>
<h2>Use Smaller Region Extent for Tests</h2>
<ul>
<li>Use smaller extent for computation region when testing.</li>
<li>Switch to the full extent when you tested your workflow.</li>
<li>Keep the resolution the same.</li>
</ul>
<img src="img/region_small_and_large.png" class="stretch">
</section>
<section>
<h2>Align Your Grids</h2>
<ul>
<li>Align computation region grid to:
<ul>
<li>raster with <em>Adjust cells to clearly align with...</em></li>
<li>multiples of given resolution value with <em>Align to resolution</em></li>
</ul>
</li>
</ul>
<img src="img/region_align_blue_red.png" class="stretch">
</section>
<section>
<h2>Attach Semantic Labels to Rasters</h2>
<ul>
<li>
image classification can use sematic labels to identify bands
<ul>
<li>different scenes can then be classified if semantic labels are the same</li>
</ul>
</li>
<li>
organize bands within one spatio-temporal dataset
<ul>
<li>each band can be referred to separately</li>
</ul>
</li>
<li>example labels: <code>red</code>, <code>blue</code>, <code>S2_1</code></li>
</ul>
<br>
<img src="img/i_superpixels_slic_ndvi_detail.png" class="stretch">
</section>
<section>
<h2>See the Tool's Performance Parameters</h2>
<ul>
<li><code>nprocs</code> specifies number of cores (processes, threads).</li>
<li><code>memory</code> specifies RAM in MB.</li>
<li>You can always run more multiple tools in the background.</li>
</ul>
<!-- around 30 tools -->
<img src="img/tiling_2x2.png" class="stretch">
</section>
<section>
<h2>Read the Performance Documentation</h2>
<p>
The <em>Performance</em> section in tool's documentation describes its
</p>
<ul>
<li>memory consumption</li>
<li>parallel efficiency</li>
<li>disk usage</li>
</ul>
<p>
in relation to different combinations of parameters.
</p>
<img src="img/openmp_r_neighbors.png" class="stretch">
</section>
<section>
<h2>Link Data Instead of Importing</h2>
<ul>
<li>
<em>r.external</em> can link (open) external raster data faster.
<ul>
<li>almost no time if min & max in metadata or not needed later</li>
</ul>
</li>
<li>
<em>v.external</em> can link (open) external raster data faster.
<ul>
<li>directly connects to PostGIS and understands its topology</li>
</ul>
</li>
<li>Great for workflows when only portion of the data is processed in GRASS GIS.</li>
</ul>
<img src="img/r_external_us.png" class="stretch">
</section>
<section>
<h2>Don't Limit Yourself to Desktop</h2>
<ul>
<li>small VM, Raspberry Pi, old laptop</li>
<li>Docker</li>
<li>HPC Clusters</li>
<li>actinia</li>
<li>OpenPlains</li>
</ul>
<img src="img/actinia_logo.svg" class="stretch">
</section>
<section>
<h2>Check for Dataset-Specific Imports</h2>
<p>
GDAL can do a lot just by itself, but
<small>
i.sentinel, i.modis, i.landsat, r.in.usgs, r.in.nasadem, m.crawl.thredds, t.rast.import.netcdf, …
</small>
make things much more convenient.
</p>
<img src="img/usgs_ned_naip_3d.png" class="stretch">
</section>
<section>
<h2>Get Support When Needed</h2>
<ul>
<li>Community support
<ul>
<li><a href="https://gitter.im/grassgis/community">Gitter chatroom</a> <small>(since 2022)</small></li>
<li><a href="https://lists.osgeo.org/mailman/listinfo/grass-user">user mailing list</a> <small>(with archive since 1991)</small></li>
<li><a href="https://gis.stackexchange.com/questions/tagged/grass">GIS StackExchange</a></li>
<li><a href="https://github.com/OSGeo/grass/discussions">GitHub Discussions</a></li>
</ul>
<li>Commercial support
<ul>
<li><a href="https://geospatial.ncsu.edu/engage/service-center/">Center for Geospatial Analytics, NC State University</a>
<li><a href="https://www.northrivergeographic.com/">North River Geographic Systems</a>
<li><a href="https://www.mundialis.de/en/open-source-gis/">mundialis</a>
<li><a href="https://opengeolabs.cz/en/home/">OpenGeoLabs</a> (& GISMentors)
</ul>
</ul>
<br>
<img src="img/grass_team.jpg" alt="GRASS GIS logo" class="stretch">
</section>
<section>
<h2>Get Things Done (Individuals)</h2>
<ul>
<li>Time: organize a [virtual] community event, check grammar</li>
<li>
Money: <a href="https://opencollective.com/grass">opencollective.com/grass</a>
<ul>
<li>Single-Window Interface, Visualizations for Notebooks</li>
</ul>
</li>
</ul>
<img src="img/prague_isprs_sprint_cafe.jpg" class="stretch">
</section>
<section>
<h2>Get Things Done (Organizations)</h2>
<ul>
<li>Time: employee time</li>
<li>
Money: pay developers/companies
<ul>
<li>
Provider-independent, contractor-independent
<ul>
<li>If you don't like us, you can hire someone completely independent.</li>
</ul>
</li>
<li>Financial investments go to a public pool</li>
</ul>
</li>
</ul>
<img src="img/osgeo_codesprint_2018.jpg" class="stretch">
</section>
<section>
<img src="img/grass_license.png" alt="GRASS GIS logo" class="stretch">
<p>
<small>
Lifetime license for current users in the audience and for everyone who asks a question.*
</small>
</p>
<p>
<small>
vpetras@ncsu.edu,
<a href="https://twitter.com/vaclavpetras/">@vaclavpetras</a>, <a href="https://github.com/wenzeslaus/">@wenzeslaus</a>
<br>
<small>
<a href="https://wenzeslaus.github.io/grass-gis-talks">wenzeslaus.github.io/grass-gis-talks</a>
</small>
</small>
</p>
<p>
<small class="credit">*The GNU General Public License version 2.0 or higher terms and conditions apply.</small>
</p>
</section>
</div>
</div>
<script src="dist/reveal.js"></script>
<script src="plugin/notes/notes.js"></script>
<script src="plugin/markdown/markdown.js"></script>
<script src="plugin/highlight/highlight.js"></script>
<script src="plugin/math/math.js"></script>
<script src="plugin/chalkboard/plugin.js"></script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
hash: true,
// Display controls in the bottom right corner
controls: true,
// Display a presentation progress bar
progress: true,
center: true,
// Display the page number of the current slide
slideNumber: false,
// Enable the slide overview mode
overview: true,
// Turns fragments on and off globally
fragments: true,
// The "normal" size of the presentation, aspect ratio will be preserved
// when the presentation is scaled to fit different resolutions. Can be
// specified using percentage units.
// width: 960,
// height: 700,
// Factor of the display size that should remain empty around the content
margin: 0.05, // increase?
// Bounds for smallest/largest possible scale to apply to content
minScale: 0.5,
maxScale: 5.0,
// Push each slide change to the browser history
history: true,
// Enable keyboard shortcuts for navigation
keyboard: true,
// Vertical centering of slides
center: true,
// Enables touch navigation on devices with touch input
touch: true,
// Loop the presentation
loop: false,
// Flags if the presentation is running in an embedded mode,
// i.e. contained within a limited portion of the screen
embedded: false,
// Number of milliseconds between automatically proceeding to the
// next slide, disabled when set to 0, this value can be overwritten
// by using a data-autoslide attribute on your slides
autoSlide: 0,
// Stop auto-sliding after user input
autoSlideStoppable: true,
// Enable slide navigation via mouse wheel
mouseWheel: false,
// Hides the address bar on mobile devices
hideAddressBar: true,
// Opens links in an iframe preview overlay
previewLinks: false,
// Slide transition
transition: 'none', // default/none/slide/concave/convex/zoom
// Transition speed
transitionSpeed: 'default', // default/fast/slow
// Transition style for full page slide backgrounds
backgroundTransition: 'none', // default/none/slide/concave/convex/zoom
// Number of slides away from the current that are visible
viewDistance: 3,
// Parallax background image
//parallaxBackgroundImage: '', // e.g. "'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'"
// Parallax background size
//parallaxBackgroundSize: '' // CSS syntax, e.g. "2100px 900px"
chalkboard: {
boardmarkerWidth: 3,
chalkWidth: 7,
chalkEffect: 1.0,
src: null,
readOnly: undefined,
toggleChalkboardButton: true,
toggleNotesButton: true,
boardmarkers : [
{ color: 'rgba(220,20,60,1)', cursor: 'url(' + path + 'img/boardmarker-red.png), auto'},
{ color: 'rgba(255,140,0,1)', cursor: 'url(' + path + 'img/boardmarker-orange.png), auto'},
]
},
math: {
mathjax: 'https://cdn.jsdelivr.net/gh/mathjax/[email protected]/MathJax.js',
config: 'TeX-AMS_HTML-full',
// pass other options into `MathJax.Hub.Config()`
TeX: { Macros: { RR: "{\\bf R}" } }
},
plugins: [
RevealMath,
RevealHighlight,
RevealMarkdown,
RevealChalkboard
]
});
</script>
</body>
</html>