Re: units of pdfxy?

From: Jatin Kala <jatin.kala.jk_at_nyahnyahspammersnyahnyah>
Date: Fri Nov 22 2013 - 13:13:09 MST

Hi Dennis,
I am confused. New documentation says:
A two-dimensional array of size (nbiny,nbinx). Values will be 0 to 1 inclusive.

When i run the example from:
http://www.ncl.ucar.edu/Document/Functions/Contributed/pdfxy.shtml

and i print the max, min and sum of the return values, these, are definitely % values, as the sum of all probabilities is 99.9, and some values do exceed 1. Or am i missing something?

Here is the test and results:

jatins-mbp:~ jatinkala$ cat test_pdfxy.ncl
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"

x = random_normal ( 0,50, (/96,144/))
  y = random_normal (10,25, (/96,144/))
  pdf2 = pdfxy(x, y, 0, 0, False) ; default is 25 bins

print(max(pdf2))
print(min(pdf2))
print(sum(pdf2))
jatins-mbp:~ jatinkala$ ncl test_pdfxy.ncl
 Copyright (C) 1995-2012 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.1.0
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
(0) 1.750578703703704
(0) 0
(0) 99.98553240740715

 

On 23 Nov 2013, at 2:11 am, Dennis Shea <shea@ucar.edu> wrote:

> The documentation has been changed.
>
> The codes for both in contributed.ncl
>
> You may look or extract the codes and modify as you wish.
>
> %> less $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
> %> vi $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
>
> search pdfx and/or pdfxy
>
> Cheers
>
> On 11/21/13 3:30 PM, lsmith@ucar.edu wrote:
>> Hi gang,
>> Does anyone know what the units of pdfxy are?
>> The documentation says, "The units will be percent (%)."
>> but I'm getting values between 0 and 1, rather than between 0 and 100.
>> Thanks for any insight!
>> Cheers,
>> -Lesley
>>
>>
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Nov 22 13:13:32 2013

This archive was generated by hypermail 2.1.8 : Wed Dec 04 2013 - 20:42:38 MST