python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to resample partially overlapping rasters using terra package in R?
I have three partially overlapping DEM rasters with different origins, resolutions (only slightly different) and extents. I know I need to use terra's resample function rather than merge or aggregate ...
ia200
Votes: 0
Answers: 1
How to count NAs using terra's global function?
I am trying to count the non-NA values in a spatRaster using the global() function from the terra package. All the functions (mean, max, sd, etc.) seem to work except for "isNA" and "no...
ia200
Votes: 0
Answers: 2
How to iterate crop raster in R using a moving window?
I want to crop a raster using a bbox or a known extent, i.e., 10 pixels in row and col.
Below you can see a reproducible example:
library(terra)
r <- terra::set.ext(rast(volcano), terra::ext(0, nro...
Hugo Machado Rodrigues
Votes: 0
Answers: 2
how to properly project a rast object if extent information is missing?
I'm trying to read a HDF5 file with terra, but the extent of the grid could not be read.
> rst <- terra::rast("temp.h5")
Warning message:
[rast] unknown extent
> rst
...
knstr
Votes: 0
Answers: 1