<div dir="ltr">sometimes, it is needed to give t values like <div><br></div><div><strong style="font-family:arial,sans-serif;font-size:12.727272033691406px"><font color="#ff0000">'define mpdsi=aave(maskout(pdsi,mask.2(t=1)),lon=x1,lon=x2,lat=y1,lat=y2)' </font></strong><br>
</div><div><strong style="font-family:arial,sans-serif;font-size:12.727272033691406px"><font color="#ff0000"><br></font></strong></div><div style><strong style="font-family:arial,sans-serif;font-size:12.727272033691406px"><font color="#ff0000">see if it works ....</font></strong></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 15, 2013 at 9:47 AM, Kishore Ragi <span dir="ltr"><<a href="mailto:kishoreragi@gmail.com" target="_blank">kishoreragi@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">You check if your maskout data is same as your pdsi data ... If data values are different, it happens. Try to be careful when you are giving grid specification in Meteoinfo....<div>
<br></div><div>Hope this solve your purpose..</div>
<div><br></div><div>Best regards,</div><div><br></div><div>Kishore</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Sun, Apr 14, 2013 at 12:34 PM, <span dir="ltr"><<a href="mailto:fairyes@zju.edu.cn" target="_blank">fairyes@zju.edu.cn</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><p>Dear Kishore,</p>
<p>I followed with your suggestion and run the next check gs file:</p>
<p></p><div>'sdfopen d:/grads/mada/data.cdf'<br>'open d:/grads/mada/maskout_china.ctl'<br></div>'set lon 61.25 143.75'<br>'set lat -8.75 56.25'<div><br>'set lev 0 0'<br>
'set e 1 1'<br></div>'set t 114'<br>'d maskout(pdsi,1)'<br>; <br>It shows all the area instead of china. So I changed my gs file following your suggestion, but it showed some errors as below:<p></p>
<p>data request error: invalid grid coordinates</p>
<p>world coordinates convert to non-integer grid coordinates</p>
<p>variable=mask.2 dimension=3</p>
<p>operation errer: error from maskout function and aave function and tloop function</p>
<p>and so on...</p>
<p>then I checked mask.2:</p>
<p></p><div>'sdfopen d:/grads/mada/data.cdf'<br>'open d:/grads/mada/maskout_china.ctl'<br></div>'set lon 61.25 143.75'<br>'set lat -8.75 56.25'<div><br>'set lev 0 0'<br>
'set e 1 1'<br></div>'set t 114'<br>'d maskout(pdsi,mask.2)'<br>;<p></p>
<p>well, it also showed some errors:</p>
<p>data request error: invalid grid coordinates</p>
<p>world coordinates convert to non-integer grid coordinates</p>
<p>variable=mask.2 dimension=3</p>
<p>operation errer: error from maskout function </p>
<p>error ocurred at column 1</p>
<p>display error: invalid expression</p>
<p>expression= maskout(pdsi,mask.2)</p>
<p> </p>
<p>What's wrong with it? Does the ctl file I changed have some errors or other problems?</p><div>
<p>Thanks a lot! Best regards!</p>
</div><p>Zhihong<br><span><br></span></p><div><div>
<p> Zhihong Zhuo,Postgraduate Student</p>
<p><font face="Times New Roman"> College of Environmental and Resource Sciences, Zhejiang University</font></p>
<p><font face="Times New Roman">Address: 866 Yuhangtan Road, Hangzhou, China</font></p>
<p><font face="Times New Roman">Email: <a href="mailto:fairyes@zju.edu.cn" target="_blank">fairyes@zju.edu.cn</a></font></p>
<p><font face="Times New Roman"></font> </p></div></div><br></div></div><div class="im">_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></div></blockquote></div><br></div>
</blockquote></div><br></div>