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

Home » Public Forums » archive » cursor,xi,yi/device
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
cursor,xi,yi/device [message #56527] Wed, 24 October 2007 22:36 Go to next message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
Hi folks;
I want to understand how we can impose *cursor,xi,yi/device* to show
us lat-long instead of row-col in an projected image ?and how we can
find the UL(upper left) and LW of an image programmatically.
Any help will be appreciated.
Cheers
Dav
Re: cursor,xi,yi/device [message #56574 is a reply to message #56527] Fri, 26 October 2007 11:51 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Dav writes:

> I want to understand how we can impose *cursor,xi,yi/device* to show
> us lat-long instead of row-col in an projected image ?and how we can
> find the UL(upper left) and LW of an image programmatically.
> Any help will be appreciated.

First of all, that DEVICE keyword in your CURSOR command will prevent
you from *ever* getting the results you want. So I would ditch that
first.

What you want to do is set up a data coordinate system for your image
so that you can ask for the cursor location in this *data* coordinate
system, which will be, naturally, in latitude/longitude.

You will display your image in a window, then you will have to set
up the proper map projection space for that image in the window. Here
is an article in which I describe one way this can be done.

http://www.dfanning.com/map_tips/precipmap.html

Once you have issued the MAP_SET command, any cursor command in
that window will return latitude and longitude.

Cheers,

David
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: mosaic_doit
Next Topic: Re: Using SYMCAT with LEGEND

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

Current Time: Wed Oct 08 19:51:39 PDT 2025

Total time taken to generate the page: 0.00426 seconds