I am creating air quality maps using two approaches.
One of them gives slightly better results when validated against measurements but there are significant spatial gaps present in the output.
The other approach gives a spatially continuous layer.
My goal is to combine the two layers by taking as much information as possible from the first layer and fill in the missing data with information from the second layer. I would like to avoid simply averaging the layers as this 1) does not retain the information from the more "valuable" layer, 2) leads to sharp breaks between the layers at some of the edges (as shown in the last picture where unnatural squares appear).
Is there any more sophisticated method to combine data in this way?
For example by assigning weights to the border data to combine it gradually.
Ultimately I would like to accomplish this in R.