Re: Map projection of IMAGE() is behaving strangely... [message #86526 is a reply to message #86518] |
Fri, 15 November 2013 08:52   |
brainwasher
Messages: 1 Registered: November 2013
|
Junior Member |
|
|
On Friday, 15 November 2013 16:43:33 UTC+1, AJAS wrote:
> Woops!
>
>
>
> I just noticed the bottom Y value is missing as well! Disaster.
Well, that problem in not only related to IMAGE function. It is found also in iTools and function iImage, and it is inherited from who knows where and when. I was really expecting that new graphics will solve it, but when i tried it for the first time I was dissapointed.
I was always using a quite straightforward way around, to give to idl one row and column it can swallow:
z_enlarged = FLTARR(3,nlon+1, nlat+1)
z_enlarged[0,1,1] = z
lon_enlarged = ((max(lon)-min(lon))/float(nlon))*findgen(nlon+1)+min(lon)
lat_enlarged = ((max(lat)-min(lat))/float(nlat))*findgen(nlat+1)+min(lat)
It is not perfect still, because idl shrinks the field little bit, but with a large number of points it looks good.
Any other solution?
|
|
|