<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hello,
<div class=""><br class="">
</div>
<div class="">I’ve used that function a bunch. If you only want 10th and 90th percentile, you’ll want to use: </div>
<div class=""><br class="">
</div>
<div class="">qsort</div>
<div class="">Which will sort your data within a single grid cell from lowest to highest.</div>
<div class=""><br class="">
</div>
<div class="">And then grab the specific lines of code for 10th and 90th percentiles from the stat_dispersion function in:</div>
<div class="">$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl</div>
<div class=""><br class="">
</div>
<div class="">If you look at the function, you’ll see that it uses qsort, then goes step by step through calculating all the different applications.</div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class="">-Jonathan</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Jun 29, 2021, at 5:14 PM, ali mughal via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" class="">ncl-talk@mailman.ucar.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div dir="ltr" class="">Dear NCL community 
<div class=""><br class="">
</div>
<div class="">In the following ncl function </div>
<div class=""><br class="">
</div>
<div class=""><a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/stat_dispersion.shtml" class="">http://www.ncl.ucar.edu/Document/Functions/Contributed/stat_dispersion.shtml</a><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Is it possible to use 10th and 90th percentile values only ? </div>
<div class=""><br class="">
</div>
<div class="">Also can these values be used to develop a spatial map? </div>
<div class=""><br class="">
</div>
<div class="">For example if I want to find the 10th and  90th percentile of air temperature within the urban grid cells only.</div>
<div class=""><br class="">
</div>
<div class="">Can anyone share an example script or point me to any web resource will be appreciated. </div>
<div class=""><br class="">
</div>
<div class="">Thanks in advance</div>
</div>
</div>
_______________________________________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@mailman.ucar.edu" class="">ncl-talk@mailman.ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
https://mailman.ucar.edu/mailman/listinfo/ncl-talk</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>