comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Map projection of IMAGE() is behaving strangely...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Map projection of IMAGE() is behaving strangely... [message #86526 is a reply to message #86518] Fri, 15 November 2013 08:52 Go to previous messageGo to previous message
brainwasher is currently offline  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?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: graphic functions - CopyWindow()
Next Topic: How to make a cloud mask from a daily MOD09 image?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:43:09 PDT 2025

Total time taken to generate the page: 0.00463 seconds