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

Home » Public Forums » archive » Re: Display and Navigate Image in IDL 8.2
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: Display and Navigate Image in IDL 8.2 [message #81329 is a reply to message #81328] Thu, 06 September 2012 10:24 Go to previous messageGo to previous message
DavidF[1] is currently offline  DavidF[1]
Messages: 94
Registered: April 2012
Member
Alain writes:

> Looking at your map display problem, I got the following issue:
>
> centerlat = 40.6000d
> centerlon = -105.1000d
> xrange = [-11711131.0d, -11688226.0d]
> yrange = [4914254.0d, 4937159.5d]
> map = map_proj_init('Mercator', ELLIPSOID='WGS 84', CENTER_LONGITUDE=0, CENTER_LATITUDE=0)
> print, map_proj_inverse(mean(xrange), mean(yrange), MAP_STRUCTURE=map)
> ; -105.10000 40.410029
>
> I should have found 40.6° for the latitude, is'nt it ?
>
> print, map_proj_inverse(xrange, yrange, MAP_STRUCTURE=map)
>
> ; -105.20288 40.331647
> ; -104.99712 40.488320
>
> Same thing regarding the latitude range boundaries which seem sligthly different
>
> from those in your PNG example (40.525 and 40.675, by eye).

The numbers could well be off a little bit. Google doesn't (I suppose
deliberately) supply these images in GeoTiff format, so I had to determine
the pixel per meter value from other published data. It involved some
detective work and assumptions (see cgGoogle_MetersPerPixel). Using
the numbers I used, however, my markers lined up exactly with Google's
own markers, so I'm guessing the numbers are close enough for my use.

But, all this is beside the point. I really want to know how
to navigate and display this image using function graphics
routines. I can use whatever projected meter numbers I like,
and I *still* can't see the image in a display window. If I
could, maybe I could work on the details of whether my map
projection numbers are totally accurate. ;-)

Cheers,

David
[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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Parrallel Matrix Inversion in IDL?
Next Topic: Reading non-standard variable sizes

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

Current Time: Sun Oct 12 07:21:47 PDT 2025

Total time taken to generate the page: 1.52128 seconds