Bug in gsn_code.ncl fix_zero_contour

From: Richard Carpenter <rcarpenter_at_nyahnyahspammersnyahnyah>
Date: Thu, 15 May 2008 11:55:05 -0500

I've managed to uncover a bug in function fix_zero_contour in gsn_code.ncl, version 5.0.0. In a case where there are missing contour levels, the difference between contour levels can be undefined, causing an if test to fail. I fixed this by adding the following after line 1096:

    if (ismissing(delta_levels)) then
      return(levels)
    end if

Richard Carpenter

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu May 15 2008 - 10:55:05 MDT

This archive was generated by hypermail 2.2.0 : Mon May 19 2008 - 08:42:48 MDT