[ncl-talk] dim_median_n warning message when whole array is missing

Dennis Shea shea at ucar.edu
Fri Dec 22 06:30:56 MST 2017


FAQ: www.ncl.edu/FAQ/#err_msgs_007

Sent from my iPhone

> On Dec 22, 2017, at 1:15 AM, Rashed Mahmood via ncl-talk <ncl-talk at ucar.edu> wrote:
> 
> 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
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk


More information about the ncl-talk mailing list