...
Reprojection: Reprojection is the process of converting spatial data from one coordinate system to another. It allows you to align data from different sources or to display data in a desired projection for analysis or visualization.
Resampling: Resampling involves changing the cell size or resolution of a raster dataset. It can be used to increase or decrease the spatial resolution of data, often to match the resolution of other datasets or to reduce file size.
Reclassification: Reclassification is the process of reassigning values in a raster dataset based on specified criteria. It's commonly used to simplify complex data, create categorical maps from continuous data, or to recode values for analysis.
Filtering: Filtering in spatial analysis refers to selecting or highlighting specific data based on certain criteria. It can involve removing unwanted data or emphasizing particular features, often used to focus on areas of interest or to remove noise from datasets.
Clipping: Clipping is the process of extracting a portion of a spatial dataset that falls within a defined boundary. It's used to focus on a specific area of interest or to reduce the size of a dataset to a manageable extent.
Distance Calculation: Distance calculation in GIS involves computing the spatial distance between features or locations. It can be used to create buffer zones, analyze proximity relationships, or generate distance-based raster surfaces for various spatial analyses
Environment setupsetup
Code Block | |
---|---|
r | library(ForestForesight) # Make sure you have DATA_FOLDER in config.yml set to where you save your data, and make sure that the config.yml file is in your working directory ff_folder <- "/path/to/ff_folder"Sys.getenv("DATA_FOLDER") template_folder <- list.files(file.path(ff_folder, "preprocessed", "input"), pattern = "^[0-9]{2}[NS]_[0-9]{3}[EW]$", full.names = TRUE)[1] template_raster <- rast(list.files(template_folder, pattern = "\\.tif$", full.names = TRUE)[1]) |
For more information about the config file please refer to the configuration page here Open-Source Contribution .
Reprojecting a raster dataset
...