align_layers.html 6.11 KB
 Facundo Muñoz committed Apr 04, 2019 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67  Harmonise projection, resolution and extent of a list of rasters — align_layers • mapMCDA

Convert a list of rasters to a common projection, resolution and extent.

align_layers(x)

Arguments

x

list of RasterLayer objects

Value

Another list of RasterLayer objects

Details

The final projection is the most common one, other than NA. If a raster has unknown projection, it is assumed to be equal to the most common one.

All rasters are resampled to the same extent and resolution as the first raster in the list.