[R-sig-Geo] Image reprojection and resampling
Bede-Fazekas Ákos
b|@|ev||@t @end|ng |rom gm@||@com
Fri Jul 10 12:56:03 CEST 2020
Dear Enoch,
Without a reproducible example it is hard to guess what you data looks
like and what causes the unexpected results.
Anyway, if you are sure that raster object called "Trying" has perfect
CRS and resolution, then this may solve your problem:
Sentinel <- projectRaster(from = Sentinel, to = Trying)
Have a nice weekend,
Ákos Bede-Fazekas
Hungarian Academy of Sciences
2020.07.10. 12:46 keltezéssel, Enoch Gyamfi Ampadu írta:
> Dear list,
>
> Please I am working with a Sentinel 2 image of 20 m resolution. I have
> tried to reproject and aggregate the resolution to 50 m. But after doing
> the reprojection, I get the resolution in decimals and I am not sure what
> factor to use for the escalation.
>
> I tried another means to reproject with an existing image of similar
> resolution 20 m using this code; Sentinel <- projectRaster(Sentinel, crs =
> crs(Trying), res = 20) and
> Sentinel <- projectRaster(Sentinel,crs = crs(Trying), keepres= TRUE)
> After the process, I get an empty image when I plot.
>
> I will be glad if I could have some insights on how to deal with these
> issues of the reprojection and aggregation/resampling.
>
> Best regards,
>
> Enoch
>
More information about the R-sig-Geo
mailing list