Re: map_image and latmin/latmax, lonmin/lonmax - edges or centres? [message #86063 is a reply to message #86062] |
Fri, 27 September 2013 14:09  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
AMS writes:
> The suggestion that was made to me was to enlarge my array using congrid(), so that when my image is plotting, the missing half-pixel border will look smaller. While this may be a workaround from a practical point of view, it feels very kludgy, and I don't think it is entirely satisfactory behaviour for several reasons. So I have also requested that this be considered as a bug in map_image, and either fixed, or else add a keyword so that the routine does what would
naively be expected.
Yes, this recalls a conversation of my own, in which I pointed out to
them that NLEVELS=12 on the Contour command was only producing 9 contour
levels. They suggested I use NLEVELS=14 or NLEVELS=15, then. Well, yes,
but that kind of "solution" doesn't really inspire a lot confidence in
the software, does it.
This, of course, eventually lead to the entire Coyote Library, just
because I couldn't stand relaying this incredibly awkward solution to
people attending IDL programming classes. And, once I got started I just
thought, "Oh, what the hell, as long as I'm fixing this I might as well
fix everything that bugs me." :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|