Re: map_image and latmin/latmax, lonmin/lonmax - edges or centres? [message #86062 is a reply to message #86057] |
Fri, 27 September 2013 13:35   |
Andy Sayer
Messages: 127 Registered: February 2009
|
Senior Member |
|
|
I heard back from Exelis tech support.
It turns out that map_image does expect the CENTRE, not outer edge, coordinates of the edge rows/columns. If you do this, things line up, but then you still end up with a half-pixel empty border around your image (as the edge pixels are still truncated ). I've requested the documentation be updated so that this (to my mind) ambiguous wording and counterintuitive behaviour is documented more clearly.
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.
We'll see what happens...
Andy
On Thursday, September 26, 2013 1:52:40 PM UTC-4, David Fanning wrote:
> AMS writes:
>
>
>
>> I am still young/naive enough that my enthusiasm, while not limitless, has not yet entirely burned away to leave the cold ashes of cynicism. ;-)
>
>
>
> I hear you, man. And envy you. ;-)
>
>
>
> 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.")
|
|
|