<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi all,<br>
<br>
I am trying to find different percentiles of occurrence (90th, 75th, 25th, etc) of a certain RCM output variable in a time, lat, lon netcdf file.&nbsp; I realize that the options qsort and dim_pqsort_n do not support ignoring missing values.&nbsp;
<br>
<br>
For a 1D array I am able to use the&nbsp; inz=ind(.not.ismissing(AOD)) command and then the sort_AOD_nz=AOD_nz(inz) to remove all values which are of fill_value, but I am getting tripped up with the added time and 2D grid.&nbsp; Below is the command I am using to mask
 any AOD events that are under 0.1 and replacing with fill_value:<br>
<br>
ncl&gt; AOD_ALL_nz=where(AOD_all_sum .gt. 0.1, AOD_all_sum, AOD_all_sum@_FillValue) ;AOD_ALL_nz(time, lat, lon)<br>
<br>
ncl&gt; AOD_sorted_values=dim_pqsort_n(AOD_ALL_nz_sorted,2,0) ; yields the sorted array increasing in time but with missing_values at the beginning of file for each grid-cell---id like to remove these so they dont count to &quot;skewing&quot; the percentiles to be lower
 than they actually should be<br>
<br>
<br>
>From here I am unable to figure out how to remove those values which are fill_value when sorting to then find the corresponding percentiles.&nbsp; Essentially I would like to follow a similar approach of the 1D or find the grid-cell specific percentiles some other
 way.&nbsp; <br>
<br>
I tried searching the list serve but to no avail.&nbsp; Does anyone have an idea of how to figure out these percentiles (i.e. neglecting events below a certain value) using the sort function or another work-around?
<br>
<br>
Thanks for any help!<br>
<br>
Marc<br>
<br>
<br>
</div>
</body>
</html>