Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
89 views

Raster stack does not seem to want to read file

Im trying to put several raster files (.tif) into one stack using the stack function from the raster package. As i do this i run into two errors, namely: > covStack <- stack(paste0(getwd(),"...
Brynollf's user avatar
1 vote
0 answers
215 views

Error in R_nc4_open: No such file or directory

library(terra) library('sp') library(raster) library('gimms','rgdal') input <- "F:/BaiduSyncdisk/graduatepaper/guaduate/data" out <- "F:/BaiduSyncdisk/graduatepaper/guaduate/area/...
乐悠悠's user avatar
0 votes
1 answer
303 views

How to clipe a .tif based on each polygon stored in a shapefile?

I have access to a tif file which contains satellite images of the Netherlands (e.g. https://ns_hwh.fundaments.nl/hwh-ortho/2022/Ortho/1/01/beelden_tif_tegels/2022_079000_449000_RGB_hrl.tif), and a ...
Maaike's user avatar
  • 11
0 votes
1 answer
68 views

Is there a way to randomly create points (geo-referenced) in a raster within the area defined by a shapefile? Rstudio

Ok so, this might actually be very straightforward and I apologize in advance. I am using R for a geospatial analysis. I want to create a series of geo-referenced points which are randomly (but ...
Francisco Borges's user avatar
0 votes
1 answer
167 views

What is the best way to use when changing raster DEM resolution from 30m to 500m using R?

I am trying to calculate Elevation, Slope and Aspect using SRTM-DEM in 500m resolution. The SRTM-DEM coordinate system is in UTM and the resolution is 30m. How to get the SRTM resolution in 500m and ...
user20664990's user avatar
0 votes
1 answer
228 views

Error calculating area of raster with lat/lon projection

I have a global raster stack (of three rasters) whose pixel values are the percent of a land use for that pixel. Here's the raster metadata: class : RasterBrick dimensions : 3600, 7200, 25920000,...
Stephen Wood's user avatar
0 votes
1 answer
393 views

how to extract specific area data from a raster map in R

my_raster.tiff file is the PM2.5 concentration in China in 2013. I've uploaded the data (my_raster.tiff) to Github (https://github.com/lizhiwei1994/example_data/blob/main/my_raster.tiff) in order to ...
zhiwei li's user avatar
  • 1,711
0 votes
1 answer
63 views

Why are there repeated raster data in r

my_raster.tiff file is the PM2.5 concentration in China in 2013. I've uploaded the data (my_raster.tiff) to Github (https://github.com/lizhiwei1994/example_data/blob/main/my_raster.tiff) in order to ...
zhiwei li's user avatar
  • 1,711
0 votes
1 answer
1k views

Using R to obtain slope raster from DEM GRID raster

After some extensive googling, I wasn't able to find my answer (first time I couldn't surmount the issue by looking at others questions/answers). I am new to asking questions, so forgive any missteps. ...
William Taylor's user avatar
0 votes
1 answer
408 views

R: "raster" cannot read a GeoTIFF that "readGDAL" is able to read

Question: I'm working with MODIS GeoTIFFs. I want to use the sf and raster libraries. The file easily opens with rgdal::readGDAL(), which gives me an object of type Large SpatialGridDataFrame. So the ...
sheß's user avatar
  • 525
0 votes
2 answers
362 views

R raster function will not accept crs in WKT format

I'm trying to generate a raster and assign it a CRS projection. However, my CRS is in the new WKT format, and the raster() function is requiring me to provide a proj4string. Here's my code so far: ...
cbowers's user avatar
  • 177
0 votes
1 answer
69 views

How to better write code for extracting raster data in R. Maybe a loop?

I am still getting my feet wet with R. I have an idea to migrate some ArcView functions into R with the following scripts. I would love to be able to have my df help fill in. Would I go about this by ...
Nathan Mack's user avatar
0 votes
1 answer
475 views

Error with CRS argument while reprojecting

I'm trying to iterate multiple rasters (+500) in a for loop but I'm facing some problems. First I want to reproject them from CRS EPSG:4326 to CRS EPSG: 32614, then resample them by using a mask ...
Judá García's user avatar
1 vote
1 answer
312 views

REST APIs with R Plumber - GIS Shapefiles

I am trying to wrap a function into REST API using plumber R Package. As a Input , function takes a shapefile and returns shapefile in terms of .shp format as well as GeoJSON format after the ...
string's user avatar
  • 827
0 votes
1 answer
62 views

issue mosaicing images with the same name in R

hello i have 4 folders containing modis images each folder have time series images named the same way e.g: Folder 1 : MCD19A2_Optical_Depth_047_2019_032.tif MCD19A2_Optical_Depth_047_2019_033.tif ...
is147's user avatar
  • 118

15 30 50 per page
1
2 3 4 5