<div dir="ltr"><div dir="ltr">Dear Users,<div>                 I would like to classify the whole global grid into four types using the quartiles obtained Q1 and Q3 using some conditions in the two years 1950 and 2013. </div><div>For example for 1950, Q1=948, Q3=5768, for 1980 Q1=1008, Q3=17089 such that my type 1 would be</div><div>Type 1 grid: 1950 those values higher than Q3 and also 1980 higher than Q3.</div><div><br></div><div>I did the same using grads as follows. </div><div><br></div><div><div>'reinit'</div><div>'sdfopen <a href="http://pp_1950.nc">pp_1950.nc</a>'</div><div>'set gxout grfill'</div><div>'define p1=ppp'</div><div>'sdfopen <a href="http://pp_1980.nc">pp_1980.nc</a>'</div><div>'define p2=ppp.2'</div><div>'set grads off'</div><div>'define mask1=const(maskout(p1,p1-5768*maskout(p2,p2-17089),1)'<br></div><div>'d mask1'</div><div>'set sdfwrite <a href="http://type1.nc">type1.nc</a>'</div><div>'sdfwrite mask1'</div><div>'draw title PPP in 1950 above 2973 and above 6371 in 1980: Type 1'</div><div>'printim type1grid_above_2K.png white'</div><div><br></div><div>Now my second condition for Type 2 in which I am confused about how to do.</div><div><br></div><div><div>type 2 : 1950 lower than Q1, 1980 higher than Q1; and 1950 between Q1 and Q3, 1980 higher than Q3 .</div><div>How to express the condition between Q1 and Q3 in maskout function ?. </div><div>Kindly give some insights. </div><div><br></div><div>Jayakrishnan</div><div><br></div><div><br></div><br class="gmail-Apple-interchange-newline"></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px">Sincerely</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">**************************************************</div><div style="font-size:12.8px">Dr. Jayakrishnan P.R</div><div style="font-size:12.8px">Post Doctoral Research Fellow</div><div style="font-size:12.8px"><div style="font-size:12.8px"><span style="font-size:12.8px">Science Technology Building</span><br></div><div style="font-size:12.8px">School of System Science</div><div style="font-size:12.8px">Beijing Normal University</div><div style="font-size:12.8px">No. 96 XInjiekouwai Street</div><div style="font-size:12.8px">Beijing 100875</div><div style="font-size:12.8px">China</div></div><div style="font-size:12.8px"><span style="font-size:12.8px">Tel: +86-188 11005715</span></div><div style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div style="font-size:12.8px">****************************************************</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><span style="color:rgb(7,55,99)"><font size="1"><br></font></span></div><div style="font-size:12.8px"><span style="color:rgb(7,55,99)"><font size="1"><br></font></span></div><div style="font-size:12.8px"><br></div></div></div></div></div></div></div></div></div>