View source: R/readSpatRasterList.R
readSpatRasterList | R Documentation |
Read qs file containing list with SpatRaster objects ( package terra)
readSpatRasterList(filePath = "filepath to save list file to ending in qs")
filePath |
file path to read the list object from ( as a package qs file with extension qs) |
Allows reloading of a list from and R session that contains SpatRasters the function recursively searches for PackedSpatRaster objects and coverts them to "SpatRaster" using terra::rast(). A work around to allow saving of sessions of R containing SpatRasters that can be reloaded ( saving the SpatRaster itself results in a null pointer error) to save list containing SpatRasters from R use saveSpatRasterList
list - if the input file contained saved PackedSpatRasters the list will contain the usable SpatRasters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.