grass gis in the sky
play

GRASS GIS in the sky GRASS GIS as high- performance remote sensing - PowerPoint PPT Presentation

GRASS GIS in the sky GRASS GIS as high- performance remote sensing toolbox Markus Neteler, Markus Metz, Moritz Lennert https://grass.osgeo.org/ GRASS GIS Intro Geographic Resources Analysis Support System Open Source GIS developed


  1. GRASS GIS in the sky GRASS GIS as high- performance remote sensing toolbox Markus Neteler, Markus Metz, Moritz Lennert https://grass.osgeo.org/

  2. GRASS GIS Intro ● Geographic Resources Analysis Support System ● Open Source GIS ● developed since 1984, since 1999 GNU GPL ● Portable code (many operating systems, 32/64bit) ● Your GIS backbone – linkable to: g.gui.tplot Skyview factor from LiDAR r3.flow FOSDEM 2018 GRASS GIS in the sky 2/20

  3. GRASS GIS and Python Using GRASS GIS from “outside” through “grass-session” pip install git+https://github.com/zarch/grass-session.git # in future, the stable "grass-session" release # will be available with: # pip install grass-session Finally easy use of GRASS GIS as a processing backend in Python! Combine with GDAL, OTB, ... FOSDEM 2018 GRASS GIS in the sky 3/20

  4. GRASS GIS 7.4 Release https://trac.osgeo.org/grass/wiki/Grass7/NewFeatures74 New: Get demo data at start screen ● GUI: data catalog improved ● Most of ortho-rectification brought back ● r.in.gdal + r.external: provide support for import of ● raster maps exceeding 90N or 90S or with an EW extent larger than 360 degrees r.out.gdal: possibility to create overviews which ● enhances the compatibility with other GIS software packages v.clip added for easy vector clipping ● … (480 fixes and improvements with respect to ● 7.2.0) FOSDEM 2018 GRASS GIS in the sky 4/20

  5. GRASS GIS 7.4 Release Atmospheric correction updated with new ● satellites MODIS product processing made easy ● FOSDEM 2018 GRASS GIS in the sky 5/20

  6. Remote sensing in GRASS GIS : a long history ● Imagery submodule already available for GRASS 1.1 in 1986 ● i.* modules fully integrated in version 3.0 in 1988 ● Steady improvement and additions ever since ● From simple text terminal to X- monitors to a modern GUI ● Memory efficient modules FOSDEM 2018 GRASS GIS in the sky 6/20

  7. Remote sensing in GRASS GIS : pixel-based techniques ● Pixel-based tools for satellite Preprocessing i.atcorr i.topo.corr and aerial imagery i.pansharpen i.landsat.toar i.landsat.acca ● Most state-of-the-art methods Classification implemented r.kappa Transformation, edge i.maxlik ● Complete toolchain from pre- detection, index extraction i.smap r.learn.ml i.cva i.fft i.wavelet processing to classification g.gui.iclass i.pca i.tasscap i.oif ● Many highly specialized tools i.cca i.edge i.zc Specialized modules i.albedo i.lswt i.evapo.* i.eb.* i.biomass i.water i.feotio2 i.gravity FOSDEM 2018 GRASS GIS in the sky 7/20

  8. Remote sensing in GRASS GIS : object-based image analysis ● Complete toolchain from segmentation to classification ● Including – unsupervised segmentation parameter optimization – high performance object statistics calculation – module-level parallelization ● Recently created module for SLIC superpixel creation source : http://dx.doi.org/10.3390/rs9040358 FOSDEM 2018 GRASS GIS in the sky 8/20

  9. Remote sensing in GRASS GIS : plus so much more ! ● Suite of LiDAR data tools ● Suite for creation of orthophotos ● Current developments : convolutional neural networks – cutlines for semantically sensitive tiling – etc, etc – ● Constantly growing list of extensions ● Permanent work on performance improvements FOSDEM 2018 GRASS GIS in the sky 9/20

  10. High-performance computing Example: NDVI time series Harmonic Analysis of Time Series (HANTS) FOSDEM 2018 GRASS GIS in the sky 10/20

  11. High-performance computing Components General HPC layout – master with job/queue manager – compute nodes master (compute node) disk space per CPU core RAM per CPU core ideally one SSD per node compute compute compute Parallelization : node node node several GRASS commands running at the same time FOSDEM 2018 GRASS GIS in the sky 11/20

  12. High-performance computing Chunks for parallel processing Temporal processing 1 2 t 2 3 4 overlap spatial chunks ● need to be mosaiked at the end 1 or temporal chunks ● need overlap FOSDEM 2018 GRASS GIS in the sky 12/20

  13. High-performance computing Spatial chunks computational region North, South, West, East ● rows, columns 1 2 ● pre-defined regions, 3 4 one for each chunk (tile) Alternative create X tiles from one raster map (r.tile) ● FOSDEM 2018 GRASS GIS in the sky 13/20

  14. High-performance computing Chunks for parallel processing Spatial processing t each time step as one chunk ● or spatial chunks ● not recommended → spatial discontinuities FOSDEM 2018 GRASS GIS in the sky 14/20

  15. High-performance computing GRASS installation setup environmental variables script 1 – GRASS commands paths – script 2 GRASS session setup 1. create unique GISRC, unique mapset 2. run script 1 variable GISRC for rc file – 3. copy results 4. delete GISRC, mapset GRASS database ● location script 3 ● mapset job manager settings ● run script 2 always check return codes FOSDEM 2018 GRASS GIS in the sky 15/20

  16. High-performance computing temporary GRASS GIS session script 2 GISRC: name of file with GRASS variables Arguments : first and last time step GISRC contents: 1. create temporary GISRC, mapset GISDBASE: name with unique names, using a pre-defined LOCATION_NAME: name directories mapset template MAPSET: name 2. run script 1 in temporary mapset LOCATION_NAME: sub-directory of GISDBASE 3. copy results, one for each time step, from MAPSET: sub-directory of LOCATION_NAME temporary mapset to final mapset export GISRC=/path/to/tmpgisrc 4. delete temporary GISRC, mapset Ideally all on a SSD scratch disk rm -rf $GISRC /path/to/temp_mapset http://grass.osgeo.org/wiki FOSDEM 2018 GRASS GIS in the sky 16/20

  17. High-performance computing job/queue manager job with task(s), here task = script 2 – Select / create a queue – submit a job to a queue job 1 : running job 2 : running – start a job when hardware job 3 : running resources are available job 4 : running – redirect stdout and stderr to job 5 : waiting job 6 : waiting unique files job 7 : waiting job 8 : waiting waiting : no hardware resources available FOSDEM 2018 GRASS GIS in the sky 17/20

  18. High-performance computing Collect results – Copy results to one common job 1 job 2 job 3 job 4 GRASS mapset job 14 job 5 → this is the I/O bottleneck results job 13 job 6 try nice / ionice job 12 job 7 cluster file systems job 11 job 10 job 9 job 8 FOSDEM 2018 GRASS GIS in the sky 18/20

  19. High-performance computing MODIS Land Surface Temperature temporal + spatial processing FOSDEM 2018 GRASS GIS in the sky 19/20

  20. High-performance computing Most important Have a good admin that fixes the system after you broke it Neteler M, Metz M, 2011 – 2018, pers. com. FOSDEM 2018 GRASS GIS in the sky 20/20

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend