Dennis,
Thanks for the quick reply, especially given that it's a holiday weekend...
> A quick look does not see how that could happen.
Not sure what you mean by "that" -- the behavior I observed or the
behavior I expected? The code in contributed.ncl pretty clearly sets
opt@bin_max as the lower bound of the final bin. Here's the relevant
code, from lines 10191-10193:
dbin = (xMax-xMin)/(nbins-1)
binBound = xMin + ispan(0,nbins,1)*dbin
binCenter = (binBound(0:nbins-1) + binBound(1:nbins))*0.5d
I guess what I'm saying is that this strikes me as an odd choice and
that I'm inclined to think most people would assume that bin_min and
bin_max form the outer bounds of the set of bins, with bin_width =
(bin_max - bin_min)/nbins. Either way, perhaps the documentation
could be updated to make the behavior more explicit.
Cheers,
Rob
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Jul 4 22:50:07 2010
This archive was generated by hypermail 2.1.8 : Fri Jul 09 2010 - 16:06:22 MDT