computing bivariate frequencies

From: <jmcphee_at_nyahnyahspammersnyahnyah>
Date: Mon, 07 Aug 2006 20:10:31 -0400

Hi All,

I'm trying to compute the joint pdf of two variables C and V stored in
arrays sized (ntime x nlat x nlon). In order to obtain the absolute
frequencies, I need to count the number of grid cells that fall within
arbitralily defined bins for each variable. Right now I'm attempting
this using a nested do loop, like:

   do ic=0,nbin_c-1

     do iv=0,nbin_v-1
     end do

   end do

I was wondering if anybody would know how to code this more
efficiently on ncl, in order to avoid the nested loop.

Many thanks on advance,


This message was sent using IMP, the Internet Messaging Program.

ncl-talk mailing list
Received on Mon Aug 07 2006 - 18:10:31 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 09 2006 - 08:25:35 MDT