Re: Questions on boxplot for Missing Value, Thanks!

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Mon Dec 06 2010 - 12:37:52 MST

Hi Xiaoming,
The boxplot function was not designed to handle missing data in the
input Y-array. I have added that functionality to the code, and have
attached the new function here. load this function after you load
shea_util.ncl:

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
load "boxplot.v3.ncl"

or, alternatively, go into shea_util and replace that version of the
boxplot code with the attached version.

This new version of the boxplot code will be the default as of NCL 6.0.0.

Let me know if you encounter any problems..
Adam

On 12/05/2010 09:57 PM, Xiaoming Sun wrote:
>
> Dear All,
>
> I am using boxplot in NCL, however, when there is FillValues, the
> boxplot function will give the following information,
> fatal:The result of the conditional expression yields a missing value.
> NCL can not determine branch, see ismissing function
>
> I need to keep these fillvalues, since the boxplot function only take 2D
> array as the "y" matrix as documented at
> http://www.ncl.ucar.edu/Document/Functions/Shea_util/boxplot.shtml.
> Thus, it looks each line of y corresponding to one data set. However,
> each line of y in my data is not equal, such that I need to keep some
> values as missing values to make each line has the same length to be a
> 2D array.
>
> Could anybody please give some help on this?
>
> Thanks a lot,
>
> Best Regards,
>
> Xiaoming
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
__________________________________________________
Adam Phillips 
asphilli@ucar.edu
National Center for Atmospheric Research   tel: (303) 497-1726
Climate and Global Dynamics Division         fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli


_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Mon Dec 6 12:37:57 2010

This archive was generated by hypermail 2.1.8 : Fri Dec 10 2010 - 14:58:12 MST