closest_val problem

From: Will Hobbs <whobbs_at_nyahnyahspammersnyahnyah>
Date: Thu, 15 Mar 2007 12:25:20 PDT
('binary' encoding is not supported, stored as-is) The following script returns a value of 3 for actpk - I was expecting 2.
I've played around with different values, and it seems only to do this
when all the values in posspk are less than prevpk. Am I using the
function incorrectly?

Will

begin

posspk = (/9, 12, 22/)
prevpk = 23

actpk = closest_val(prevpk, posspk)
print(actpk)
end

============================
Room A113
UCLA Department of Geography
1255 Bunche Hall
Los Angeles CA 90095-1524

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Mar 15 2007 - 13:25:20 MDT

This archive was generated by hypermail 2.2.0 : Fri Mar 16 2007 - 08:51:26 MDT