Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
46 votes
3 answers
56k views

How can I convert data in the form of lat, lon, value into a raster file using R?

I have a data set of values over a km grid in the continental U.S. The columns are "latitude", "longitude", and "observation", e.g.: "lat" "lon" "yield" 25.567 -120.347 3.6 25.832 -120....
Abe's user avatar
  • 1,943
14 votes
1 answer
62k views

Converting geographic coordinate system in R

I have points in geographic coordinate system and I wanted to convert them to swiss grid (CH1903+). Sample data: id lon lat 2 7.173500 45.86880 3 7.172540 45.86887 4 7.171636 45....
Topdombili's user avatar
3 votes
1 answer
4k views

Creating DEM from vector contours using GRASS and R?

I want to convert vector contours to a DEM. From other posts, I wanted to use the Grass r.surf.contours tool. Initially, I converted the vector contour layer to a rasterized contours using the ...
boberdorf's user avatar
  • 1,357
8 votes
2 answers
5k views

Change a raster from longitude display (-180, 180) to (0, 360)

Using R software, I want to modify the attached raster in order to visualize it centered on the Pacific Ocean. Indeed, I need to show the entire Oceania: in my opinion I have to shift from (-180,180) ...
Marco's user avatar
  • 365
5 votes
2 answers
12k views

R - NetCDF to Raster

I've recently started working with spatial data in R. I am currently working on a project that uses data in both raster and netcdf formats, and I'd be happy to convert the latter to the former, ...
yassem's user avatar
  • 53
5 votes
2 answers
7k views

Convert ESRI Shapefile to Raster using R - biggest polygon area to raster cell value?

I want to create a raster from an ESRI shapefile. Multiple polygons may exist in one raster cell. If so, I want to assign the attribute variable which occupies the biggest area of the raster cell. If,...
A.Spa's user avatar
  • 53