[ncl-talk] dim_median_n warning message when whole array is missing
Rashed Mahmood
rashidcomsis at gmail.com
Thu Dec 21 23:15:03 MST 2017
Hi everyone, NCL6.4
I am wondering why there should be a warning message when using
'dim_median_n' for data that has whole array missing. Can it "quietly"
ignore if all array is missing similar to 'dim_avg_n' ?
here is a simple example:
ncl 0> a = (/1,1,1/)
ncl 1> a at _FillValue = 1
ncl 2> b = dim_avg_n(a,0)
ncl 3> c = dim_median_n(a,0)
warning:dim_median_n: 1 rightmost sections of the input array contained all
missing values
The warning is message makes sense but it becomes difficult to debug if
looping over hundreds of times where many instance have all missing data.
Cheers,
Rashed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171221/f5b6b82d/attachment.html>
More information about the ncl-talk
mailing list