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

Home » Public Forums » archive » map_set stereographic projection
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_set stereographic projection [message #48588 is a reply to message #48520] Fri, 28 April 2006 10:24 Go to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
mattie wrote:
> kuyper@wizard.net writes:
>
>> dvila wrote:
...
>> ; These are the u-v values corresponding to pixel centers along each
>> edge.
>> topv = (uv[1,1]+uv[1,2])*0.5
>> botv = (uv[1,0]+uv[1,3])*0.5
>> leftu = (uv[0,0]+uv[0,1])*0.5
>> rightu = (uv[0,2]+uv[0,3])*0.5
>
>
> Aren't these the u-v values corresponding to the _center_ of the
> gridcell along each edge? (assuming the initial data gave the
> centerpoints of the gridcell.)

Yes, that's what my comment line says.

...
>> ; U-V coordinates of midpoints of outer edges
>> u = [leftu-0.5*xscale, 0.5*(leftu+rightu), rightu+0.5*xscale, $
>> 0.5*(leftu+rightu)]
>> v = [0.5*(botv+topv), topv+0.5*yscale, 0.5*(botv+topv),
>> botv-0.5*yscale]
>> lonlat = MAP_PROJ_INVERSE(u, v, MAP_STRUCTURE=stereo)
>> limit = [lonlat[1,*],lonlat[0,*]]
>
> Again, I'm not sure, but don't you have to add half a gridcell to each
> direction to get the outter limit of each grid cell?

Yes, that is precisely why I wrote such things as "leftu-0.5*xscale",
etc.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to rotate a figure in PLOT?
Next Topic: Upgrade to IDL 6.3 breaks IDLtoAVI

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

Current Time: Wed Oct 08 17:47:00 PDT 2025

Total time taken to generate the page: 0.00429 seconds