atmoschem / eixport

Export Emissions to Atmospheric Models
https://atmoschem.github.io/eixport/
Other
27 stars 10 forks source link

add st_to_raster #42

Closed ibarraespinosa closed 5 years ago

ibarraespinosa commented 5 years ago

It seems that new raser version can read sf, therefore it is not necessary this

From R SIG emails:

library(sf) library(raster) points_sf <- st_as_sf(data.frame(xp, yp, area), coords = c("xp", "yp"), crs = 32629) circles_sf <- st_buffer(x = points, dist = sqrt(points_sf$area / pi)) # if it is really the area, or dist = points_sf$area if it is the radius empty_raster <- raster(points_sf, resolution = 1)