<div dir="ltr"><div> eps_rain = 1e-6</div><div> sat_rain = <a href="http://test.www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml"><b>where</b></a>(sat_rain.lt.eps_rain, sat_rain@_FillValue, sat_rain)</div><div>or</div><div> sat_rain = <a href="http://test.www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml"><b>where</b></a>(sat_rain.lt.eps_rain, 0.0 , sat_rain)</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 4, 2018 at 9:37 AM Debasish Hazra <<a href="mailto:debasish.hazra5@gmail.com">debasish.hazra5@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div>I am not able to fix missing value as it seems to be incorrect. </div><div><br></div><div> printVarSummary(sat_rain)<br> printMinMax(sat_rain,0)</div><div> which shows :</div><div>Variable: sat_rain<br>Type: float<br>Total Size: 506661120 bytes<br> 126665280 values<br>Number of Dimensions: 3<br>Dimensions and sizes: [time | 122] x [lat | 721] x [lon | 1440]<br>Coordinates:<br> ttime: [20150601..20150930]<br> lat: [ -90.. 90]<br> lon: [-180..179.75]<br>Number Of Attributes: 13<br> time : 1496275200<br> units : mm<br> long_name : SNIP</div><div>.......<br> missing_value : -9999.9<br> _FillValue : -9999.9<br>(0) Daily accumulated precipitation (combined microwave-IR) estimate - Late Run (mm) : min=-1.88301e-12 max=595.349</div><div><br></div><div>To fix the minumum value I assigned :</div><div> sat_fix=sat_rain </div><div> sat_min = min(sat_rain)</div><div> printVarSummary(sat_fix)<br> sat_fix@_FillValue = sat_min<br> printVarSummary(sat_fix)<br> printMinMax(sat_fix,0)</div><div>But, it did not change minimum value much : Daily accumulated precipitation (combined microwave-IR) estimate - Late Run (mm) : min=-1.42511e-12 max=595.349</div><div><br></div><div> num_missing_orig = num(ismissing(sat_rain))<br> num_missing_fix = num(ismissing(sat_fix))<br> print</div><div><br></div><div>======================================================================<br>(0) Number of original values that are equal to the missing value as<br>(0) defined on the file: 29088262<br>(0) Number of fixed values that are missing: 29088263<br>(0) ======================================================================</div><div><br></div><div>So, when I am using that variable against model output for RMSE , I am getting warnings :</div><div>warning:dim_rmsd_n: 227187 rightmost sections of one or both of the input arrays contained all missing values.</div><div><br></div><div>Any help on how to correct that is appreciated. I uploaded one input file at ftp, if that helps.</div><div>Thanks</div><div>Debasish</div><div><br></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>