Examples for doing spatial analysis with R in CSC computing environment:
- puhti - examples for different job types in Puhti: simple serial, array and parallel:
snow,parallelandfuture. - Working with Allas data from R
- Reading NLS topographic database geopackage with R
- R for LiDAR data - examples and exercises
- Some R packages have in-built support for parallization, for example
raster,terraandlidR.- raster - includes also the batch job (parallel) file for Puhti.
- lidR
terra- mainly follow terra manual, see for example predict example. For batch job file seerasterpackage example.- With
terrait is important to set memory settings manually, because by default it does not understand memory availability on supercomputers correctly. For example if reserving 8Gb memory from batch job, tell it also toterra. Adjust also used memory share, the default is 50%.
terraOptions(memmax=8)
terraOptions(memfrac=0.9)
References for CSC's R spatial tools:
- Puhti's R for GIS documentation, at the end of page are several links to good learning materials about R for spatial data analysis.
- Puhti's R documentation