[R-sig-Geo] issues with NAs when using resample function
Stephen Stewart
stephen.stewart85 at gmail.com
Wed Nov 18 02:42:16 CET 2015
Hi Beth,
In the past, I have interpolated coastal and border regions in the original
coarse resolution prior to resampling. This can be done relatively easily
using the *gstat* package, QGIS and/or GDAL/SAGA/GRASS.
Once the coarse resolution data has been interpolated, run bilinear
interpolation and then apply a mask so that ocean areas are excluded.
Depending upon the variable I would use bilinear interpolation with
caution. It may be worth investigating any potential downscaling approaches
if you haven't already.
Hope that helps!
Cheers,
Steve
On Wed, Nov 18, 2015 at 12:12 PM, Beth Forrestel <ejforrestel at gmail.com>
wrote:
> Hello~
>
> I am trying to resample a raster layer to match the resolution of another
> layer using the bilinear interpolation method. Is there a way to ignore
> NAs (ocean) when I do this so that I don't lose data?
> na.rm=TRUE does not seem to do the trick
>
> Many thanks!
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
[[alternative HTML version deleted]]
More information about the R-sig-Geo
mailing list