Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 1.39 KB

File metadata and controls

20 lines (17 loc) · 1.39 KB

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, parallel and future.
  • 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, terra and lidR.
    • 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 see raster package example.
    • With terra it 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 to terra. Adjust also used memory share, the default is 50%.
terraOptions(memmax=8)
terraOptions(memfrac=0.9)

References for CSC's R spatial tools: