<div dir="ltr">Dear GrADS Users,<div><br><div>I have worked out the right script. </div><div><br></div><div>Thank you </div></div><div><br></div><div>With Best Regards,</div><div>Mehwish</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 13, 2017 at 5:51 AM, mehwish ramzan <span dir="ltr"><<a href="mailto:mehwish.ramzan@gmail.com" target="_blank">mehwish.ramzan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Dear GrADS users,</div><div><br></div><div>I am trying to calculate the temporal correlation between model and observation precipitation for one season using monthly precipitation data. </div><div><br></div><div>Due to the difference in resolution of both datasets, i used cdo to convert them into same resolution (i tried lterp of grads l but it didn't work).</div><div><br></div><div><font color="#0000ff">cdo intgrid,<a href="http://obs_jja.nc" target="_blank">obs_jja.nc</a> <a href="http://model_res_jja.nc" target="_blank">model_res_jja.nc</a> <a href="http://model_jja.nc" target="_blank">model_jja.nc</a> </font></div><div><br></div><div>(note that i moved <a href="http://obs_jja.nc" target="_blank">obs_jja.nc</a> and <a href="http://model_jja.nc" target="_blank">model_jja.nc</a> into new directory and merge both files into one using)</div><div> </div><div><font color="#0000ff">cdo merge *.nc <a href="http://jja.nc" target="_blank">jja.nc</a> </font><br></div><div><br></div><div><br></div><div><font color="#741b47">ga-> sdfopen <a href="http://jja.nc" target="_blank">jja.nc</a></font></div><div><br></div><div><font color="#741b47">ga-> set x 1</font></div><div>LON set to 11.875 11.875 </div><div><font color="#741b47">ga-> set y 1</font></div><div>LAT set to -15.125 -15.125 </div><div><font color="#741b47">ga-> set t 1 3</font></div><div>Time values set: 2005:6:1:0 2005:8:1:0 </div><div><font color="#741b47">ga-> define model= prec</font></div><div>Define memory allocation size = 24 bytes</div><div><font color="#741b47">ga-> set lon 12 123</font></div><div>LON set to 12 123 </div><div><font color="#741b47">ga-> set lat -15 45</font></div><div>LAT set to -15 45 </div><div><font color="#741b47">ga-> set t 1 3</font></div><div>Time values set: 2005:6:1:0 2005:8:1:0 </div><div><font color="#741b47">ga-> define obs= pr</font></div><div>Define memory allocation size = 2590368 bytes</div><div><font color="#741b47">ga-> set t 1</font></div><div>Time values set: 2005:6:1:0 2005:6:1:0 </div><div><font color="#741b47">ga-> d tcorr(model, obs, t=1, t=3)</font></div><div>TCORR: dim = 3, start = 1, end = 3</div><div>Cannot contour grid - all undefined values </div><div><br></div><div>I can visualize both variables individually but the tcorr doesn't work.</div><div><br></div><div>Please guide me.</div><div><br></div><div>Thank you</div><div><br></div><div>With Best Regards,</div><div>Mehwish</div><div><br></div><div><br></div></div>
</blockquote></div><br></div>