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

Home » Public Forums » archive » Re: Returning Land Type
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
Re: Returning Land Type [message #51800] Fri, 08 December 2006 07:34
KRDean is currently offline  KRDean
Messages: 69
Registered: July 2006
Member
I did this a few years ago with the 1km Global Land Cover
Characteristics
Database from USGS (usgs2_0g.img.gz). There are several different
land, vegetation, and water values provided as a byte value. The data
file and legend can be found at...

http://edcdaac.usgs.gov/glcc/globdoc2_0.html

It is easy to compute the navigation so you can extract the value --

lin = ( 89.99583333333334 - lat ) / 0.00833333333333
ele = ( -179.99583333333334 - lon ) / 0.00833333333333

Kelly Dean
Fort Collins, Colorado
Re: Returning Land Type [message #51826 is a reply to message #51800] Thu, 07 December 2006 06:38 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 2006 IDL Christmas Card
Next Topic: Re: Average over odd/even lines

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

Current Time: Sun Oct 12 14:15:02 PDT 2025

Total time taken to generate the page: 2.07899 seconds