<div dir="ltr">Dear Grads Users<div><br></div><div>I am trying to build contingency table for model verification using grads. Currently my model and observation are both at exactly same resolution. So I have written the following script. But it is not giving me the count of Yes/Yes, No/No etc correctly. How am I supposed to build contingency table using grads if someone can please help.</div>
<div><br></div><div>Following is the script. </div><div><br></div><div><div>'reinit'</div><div><br></div><div>'open model.ctl'</div><div>'set t 3'</div><div>'set y 57 208'</div><div>'set x 72 228'</div>
<div>'define a = rain'</div><div>'close 1'</div><div><br></div><div>'open observation.ctl'</div><div>'set t 3'</div><div>'set y 57 208'</div><div>'set x 72 228'</div><div>'define b = prec'</div>
<div><br></div><div>n1=0</div><div>n2=0</div><div>n3=0</div><div>n4=0</div><div>j=72<br></div><div>while (j<=228)</div><div>'set y 'j</div><div>i=57</div><div>while (i<=208)</div><div>'set x 'i</div>
<div>if(a>0&b>0)</div><div>n1=n1+1</div><div>else</div><div>if(a<=0&b<=0)</div><div>n2=n2+1</div><div>else</div><div>if(a<=0&b>0)</div><div>n3=n3+1</div><div>else</div><div>if(a>0&b<=0)</div>
<div>n4=n4+1</div><div>endif</div><div>endif</div><div>endif</div><div>endif</div><div>i=i+1</div><div>endwhile</div><div>j=j+1</div><div>endwhile</div><div>say n1</div><div>say n2</div><div>say n3</div><div>say n4</div></div>
<div>'close 1'</div><div><br></div><div>Or is anyother method available for making contingency tables for forecast verification with grads?</div><div><br></div><div>Please let me know.</div><div><br></div><div>Regards</div>
<div>Amulya Chevuturi</div><div><br></div><div><br></div></div>