Lurker Posted May 8, 2020 Report Share Posted May 8, 2020 GRASS GIS was, for a long time, something I dismissed as ‘too complex’ for my everyday geospatial operations. I formulated any number of excuses to work around the software and could not be convinced it had practical use in my daily work. It was ‘too hard to set-up’, ‘never worked well with QGIS’, and ‘made my scripting processes a nightmare’. In this example we will: part 1: 1. Download a small piece of elevation data from the LINZ Data Service 2. Build a GRASS environment to process these data 3. Build a BASH script to process the catchments 4. Import the elevation into the GRASS environment 5. Perform some basic GRASS operations (fill and watershed) 6. Export raster format for viewing 7. Export the vector catchments to shapefile part 2: 1. Creating multiple watershed boundaries of different sizes with GRASS and using a basic loop in BASH for the process. 2. Clipping the original raster by the watershed boundaries using GDAL and SQL with a basic loop in BASH. links: part 1: https://xycarto.com/2020/05/03/basic-grass-gis-with-bash/ part 2: https://xycarto.com/2020/05/05/basic-grass-gis-with-bash-plus-gdal/ source code: https://github.com/xycarto/xycarto_code/tree/master/scripts/grass/GRASS_BASH_blog 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.