Hi everyone,

I have two Raster layers : the first is the current global annual temperature (cgat) and the second is the future global annual temperature (fgat).
First, I extracted the values of the area that interested me for the two raster layers (extract_cgat and extract fgat).
And after, I calculated the value of one distance metric between the current and the future climate realizations for each gridpoint : “distance<-overlay(extract_cgat, extract_fgat, fun=function(x,y){formula})” and I obtained the Raster layer wanted.

But now, I want to calculate the value of distance metric between one gridpoint of extract_fgat raster and all gridpoint of extract_cgat raster and keep the min value. And finally, remake this step for all gridpoint of extract_fgat raster and obtain the Raster layers with all “min value gridpoint”. I have no idea how I will make this, any ideas?

Thank you very much for all help,
Camille Leclerc
--
Lab ESE, UMR CNRS 8079
Univ Paris-Sud
Bat 362
F-91405  Orsay Cedex FRANCE
e-mail: camille.leclerc@ymail.com

	[[alternative HTML version deleted]]

