Hiren,<br>First, prepare to use a lot of loops.<br><br>For each grid point, you&#39;ll have to collect all the precipitation values using code that looks like this<br><br>&#39;set x &#39;xx<br>&#39;set y &#39;yy<br>&#39;d precip&#39;<br>
precip_value = subwrd(result,4)<br>precip_xx.n = precip_value<br><br>where xx and yy are looping index values for your grid points, and n is an integer index to represent the number of values in your precipitation distribution at each grid point.  Note that you may have to include the line &#39;line = sublin(result,2)&#39; if your display command doesn&#39;t result in text the way I assumed it would here.  TO check it, just type &#39;d precip&#39; at the command prompt with the previous settings already applied and see what the output is.  Then adjust your code accordingly.  NOTE: your actual precipitation grid name may not be &quot;precip&quot;.  Change that as well to suit your specific data.<br>
<br>After that&#39;s done, you&#39;ll have to sort the data so you can define the 90th and 99th percentiles.  There are a number of ways to do that.<br><br>Finally, you&#39;ll have to define a domain sized grid.  Call it whatever you want, but make sure it has the same size as the domain.  Then, at each grid point, use the command &#39;set defval ....&#39; to redefine the value of your new field with that of the 90th or 99th percentile of precip.<br>
<br>Jeff Duda<br><br><div class="gmail_quote">On Wed, Nov 28, 2012 at 6:00 AM, hiren dave <span dir="ltr">&lt;<a href="mailto:hiren_dave85@yahoo.com" target="_blank">hiren_dave85@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div><span>Dear all</span></div><div><span><span>    <span>    I am having gridded rainfall data set for 40 years. I want to know how to find out 90th and 99th percentile of daily rainfall series at each grid cell, considering days with only nonzero rainfall  for the whole period of 40 year. </span></span></span></div>
<span class="HOEnZb"><font color="#888888"><div></div><div> </div><div><div style="margin:5px 0px;padding:0px;border:1px solid rgb(204,204,204);min-height:0px;line-height:0;font-size:0px" readonly></div>Hiren Dave</div><div>
Research Schoolar</div><div>Gujarat University</div><div>Ahmedabad-India </div><div><div style="margin:5px 0px;padding:0px;border:1px solid rgb(204,204,204);min-height:0px;line-height:0;font-size:0px" readonly></div><br><br>
</div></font></span></div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br><br>