<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><span></span></div><div dir="ltr"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="ltr"><span></span></div><div dir="ltr"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="ltr"><span></span></div><div dir="ltr"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="ltr"><span></span></div><div dir="ltr"><span>Hi,</span><br><span></span><br><span>You should be able to do all this in GrADS.</span><br><span></span><br><span>If you haven’t, I recommend updating to at least version 2.1.1.b0, which introduced easier logical scripting expressions:</span><br><span><a href="http://cola.gmu.edu/grads/gadoc/expressions.html">http://cola.gmu.edu/grads/gadoc/expressions.html</a></span><br><span></span>See the example here: </div><div dir="ltr"><a href="http://gradsusr.org/pipermail/gradsusr/2017-February/040717.html">http://gradsusr.org/pipermail/gradsusr/2017-February/040717.html</a></div><div dir="ltr"><span></span><br><span>-Andrew</span><br><span></span><br><blockquote type="cite"><span>On Dec 28, 2018, at 4:04 AM, Jayakrishnan P.R <<a href="mailto:prjayakrishnan@gmail.com">prjayakrishnan@gmail.com</a>> wrote:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Dear All,</span><br></blockquote><blockquote type="cite"><span>          I have a gridded data of population globally from 1950 to 2005. I wanted to do as follows.</span><br></blockquote><blockquote type="cite"><span>1) Convert the grid into three different types.</span><br></blockquote><blockquote type="cite"><span>ie </span><br></blockquote><blockquote type="cite"><span>Type 1 grid>>> Display those grids if greater than value 10000 in the year 1950 and greater than value 10000 in the year 2015..</span><br></blockquote><blockquote type="cite"><span>Type 2 grid  Display those grids if value less than 10000 in the year 1950 and greater than 10000 in the year 2015...</span><br></blockquote><blockquote type="cite"><span>Type 3 grid Display those grids if less than value 10000 in the year 1950 and less than value 10000 in 2015</span><br></blockquote><blockquote type="cite"><span>Any thoughts in grads will be appreciated....Can we do this using maskout function, constant function and if else statement ?. I am unable to do it in grads. Trying to do in mathlab...</span><br></blockquote><blockquote type="cite"><span>Jayakrishnan </span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>-- </span><br></blockquote><blockquote type="cite"><span>Sincerely</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>**************************************************</span><br></blockquote><blockquote type="cite"><span>Dr. Jayakrishnan P.R</span><br></blockquote><blockquote type="cite"><span>Post Doctoral Research Fellow</span><br></blockquote><blockquote type="cite"><span>Science Technology Building</span><br></blockquote><blockquote type="cite"><span>School of System Science</span><br></blockquote><blockquote type="cite"><span>Beijing Normal University</span><br></blockquote><blockquote type="cite"><span>No. 96 XInjiekouwai Street</span><br></blockquote><blockquote type="cite"><span>Beijing 100875</span><br></blockquote><blockquote type="cite"><span>China</span><br></blockquote><blockquote type="cite"><span>Tel: +86-188 11005715</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>****************************************************</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>_______________________________________________</span><br></blockquote><blockquote type="cite"><span>gradsusr mailing list</span><br></blockquote><blockquote type="cite"><span><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a></span><br></blockquote><blockquote type="cite"><span><a href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a></span><br></blockquote><span></span><br></div></div></div></div></body></html>