I have two .hgt files, and I would like to join them.
Reading files
library(raster)
h1=raster("E:/FILES/S12E043.hgt")
h2=raster("E:/FILES/S13E043.hgt")
How to merge them?
I have two .hgt files, and I would like to join them.
Reading files
library(raster)
h1=raster("E:/FILES/S12E043.hgt")
h2=raster("E:/FILES/S13E043.hgt")
How to merge them?
You can use raster
package to merge them like
library(raster)
m = mosaic(h1, h2, fun=mean)
m is the merged raster.