<span style='font-family:Verdana'><span style='font-size:12px'>Hi !!! I am trying to correlate Sea Surface Temperatures with 1 degree of resolution and precipitation of GPCP with 2.5 resolution but just for some years. But I am begining using Grads and I could not find a function to do that. I will thanks your help very much.<br /><br /><br />*climatologia<br />'reinit'<br />'sdfopen F:\climadatos\sst.mnmean_2.nc'<br />'sdfopen F:\climadatos\gpcpprecipitacion.nc'<br />'set map 1 1 6'<br />'set grid off'<br />'set clopts 1 1 0.14'<br />'set xlopts 1 2 0.14'<br />'set ylopts 1 2 0.14'<br />* Estes são tons de AZUL<br />'set rgb 16&nbsp;&nbsp; 0&nbsp;&nbsp; 0 255'<br />'set rgb 17&nbsp; 20&nbsp; 20 255'<br />'set rgb 18&nbsp; 55&nbsp; 55 255'<br />'set rgb 19 110 110 255'<br />'set rgb 20 165 165 255'<br />'set rgb 21 220 220 255'<br />* Estes são tons de AMARELO-VERMELHO<br />'set rgb 22 230 220 51'<br />'set rgb 23 230 176 46'<br />'set rgb 24 240 130 41'<br />'set rgb 25 240 100 20'<br />'set rgb 26 255&nbsp; 55&nbsp; 55'<br />'set rgb 27 255&nbsp;&nbsp; 0&nbsp;&nbsp; 0'<br />'set lat 10 50'<br />'set lon 255 345'<br />* jan 82 a jan 2010<br />tempo=1<br />while (tempo&lt;13)<br />* clima 82 a 99 (jan 82 t=37) (jan2010 t=373)<br />* anomp: 1987, 1998, 2005, 2006, 2010<br />'define comppos=(precip.1(t='tempo+96')+precip.1(t='tempo+228')+precip.1(t='tempo+312')+precip.1(t='tempo+324')+precip.1(t='tempo+372'))/5'<br />'define compneg=(sst(t='tempo+61')+sst(t='tempo+193')+sst(t='tempo+276')+sst(t='tempo+289')+sst(t='tempo+337'))/5'<br />&nbsp;&nbsp;&nbsp; 'set grads off'<br />&nbsp;&nbsp;&nbsp; 'set grid off'&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp; 'set gxout shaded'<br />&nbsp;&nbsp;&nbsp; 'set clevs -1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1'<br />&nbsp;&nbsp;&nbsp; 'set ccols 16 17 18 19 20 0 0 22 23 24 25 26 27'<br />&nbsp;&nbsp;&nbsp; 'd fcorr(precip.1, sst)'<br />&nbsp;&nbsp;&nbsp; 'draw title Flujo Vertical Integrado de Humedad (kg/m/s)\ y Correlacion (Unidades)'<br />&nbsp;&nbsp;&nbsp; 'run F:\climadatos\cbarn.gs.gs'<br />&nbsp;&nbsp;&nbsp; 'printim correlacionsstprecip'mes'.gif gif white'<br />&nbsp;&nbsp;&nbsp; 'c'<br />&nbsp;&nbsp;&nbsp; tempo=tempo+1<br />&nbsp;&nbsp;&nbsp; mes=mes+1<br />endwhile<br />'quit'</span></span>