Re: (pdfx) can not coerce

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Wed Mar 12 2014 - 13:46:32 MDT

Hi Laura,
The pdfx documentation says that nbin should be of type integer. So try
switching this:
nbin = 50.
to this:
nbin = 50
and see if that works. If not, let ncl-talk know..
Adam

On 03/12/2014 01:43 PM, Laura Fowler wrote:
> Hi:
> Can somebody help me with the following error message when using the
> pdfx function? I am trying to plot the probability density functions of
> precipitation rates (rain) with the following dimensions:
>
> Variable: rain
> Type: double
> Total Size: 151301808 bytes
> 18912726 values
> Number of Dimensions: 2
> Dimensions and sizes: [123] x [153762]
> Coordinates:
> Number Of Attributes: 1
> _FillValue : 9.969209968386869e+36
>
> 123 is the number of times and 153762 is the total number of grid cells
> (unstructured mesh). Here is part of the script that computes the PDF:
>
> ;calculates the probability density distributions:
> nbin = 50.
> opt = True
> opt@bin_min = 0.
> opt@bin_max = 550.
> printVarSummary(rain)
> pdf_rain = pdfx(rain,nbin,opt)
>
> fatal:Argument type mismatch on argument (1) of (pdfx) can not coerce
> fatal:["Execute.c":8128]:Execute: Error occurred at or near line 75 in
> file densityFunctions.ncl
>
> I did not have any issue using a coarser mesh for which the number of
> grid cells is 40962 instead of 153762, so that do not make sense to me.
> The entire ncl script (densityFunctions.ncl) can be found in the
> directory /glade/scratch/laura/nrcm.2013-11-06/run.x4_153762
>
> Thanks,
> Laura
>

-- 
______________________________________________________________
Adam Phillips                                asphilli@ucar.edu
NCAR/Climate and Global Dynamics Division       (303) 497-1726
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/staff/asphilli
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Mar 12 13:46:44 2014

This archive was generated by hypermail 2.1.8 : Fri Mar 14 2014 - 15:08:52 MDT