<div dir="ltr">Dear users,<div><br></div><div style>I want to calculate spatial correlation among every 10 degree zones, horizontally and vertically. </div><div style><br></div><div style>spatial correlation command for grads is scorr(var1,var2,lon=0,lon=360,lat=0,lat=10)</div>
<div style><br></div><div style>My script should look like the following...</div><div style><br></div><div style>'sdfopen <a href="http://model.nc">model.nc</a>'</div><div style>'set z 1 8'</div><div style>
'define scorr(var1,var2,lon=0,lon=360,lat=0,lat=-10)'</div><div style>'sdfwrite <a href="http://corr.nc">corr.nc</a>'</div><div style><br></div><div style> This code is giving nc file having only one zone of (0 to 10), but I want to have a file for all 10 degree zones in southern and northern hemisphere. I am sure I am having trouble getting the loop here.</div>
<div style><br></div><div style>Could you please anyone help with the script.</div><div style><br></div><div style>Thank you in advance,</div><div style><br></div><div style>Regards,</div><div style><br></div><div style>Kishore</div>
<div style><br></div><div style><br></div></div>