I am trying to merge two tiles of the worldclim data in geotiff format, which I want to subsequently work with in the raster package in R.
When I use gdal's gdal_merge.py script: gdal_merge.py -v -o tmean1_06_16.tif tmean1_06.tif tmean1_16.tif
So I thought that the no data value is not set correctly when merging. Therefore I looked up the no data value in one of the original tiles with gdalinfo.
It seems the no data value is set to NoData Value=-3.39999999999999996e+38
So i tried to use that value when merging: gdal_merge.py -v -n -3.39999999999999996e+38 -o tmean1_06_16.tif tmean1_06.tif tmean1_16.tif