Re: Returning Land Type [message #51826 is a reply to message #51800] |
Thu, 07 December 2006 06:38  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Lloyd writes:
> I'm struggling with a mapping problem. I've got the mapping routines
> running, but what I'd like to be able to do is to give IDL some
> coordinates (lat/long) and have it return the ground type (e.g.
> vegetation, ocean, snow, etc - maybe not that detailled).
>
> Has anyone come across this, or done something similar?
I'd be careful about confusing the data with the *display*
of the data. But, presuming you can distinguish these
properties on the basis of some property, say color,
you could take a snapshot of your entire window.
Then you could use CONVERT_COORD to convert your lat/lon
coordinates to device coordinates, and use those to
look up the color in your snapshot. That should tell
you how how that pixel is colored.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|