From: Eric F. <ef...@ha...> - 2005-06-02 17:39:47
|
John, Jeff, > Eric: Thanks - contour indeed now seems to work perfectly with masked > arrays, but I still have problems with contourf (see attached > ortho_test.png). Unfortunately, neither of your suggested workarounds > help, the first makes no difference and the second makes it much worse. > -Jeff The attached patch against the cntr.c in cvs does the following: 1) Fixes the bug you (Jeff) described above. 2) Adds a print function for debugging, but normally unused. 3) Fixes a minor bug in which space for an array of ints was allocated where only an array of chars was used. The original masked array contourf bug is still there, but I suspect (and hope!) it will not present a serious problem for basemap. I still want to find and fix it, but that may take a long time. I want to make some minor cleanups and one API change in contour.py, but I will leave that for a separate message, probably within 24 hours. Eric |