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

Home » Public Forums » archive » Re: Geographic Lat/Lon
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: Geographic Lat/Lon [message #59895 is a reply to message #59894] Fri, 11 April 2008 14:59 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
robinson.inj@gmail.com writes:

> I was wondering if someone could suggest me how to specify the
> following ENVI information in IDL:
>
> map info = {Geographic Lat/Lon, 1.0000, 1.0000, -130.54072891,
> 40.00000000, 4.8112599312e-003, 4.8112599312e-003, WGS-84,
> units=Degrees}
>
> I need to create lats and lons grids for the "Geographic Lat/Lon"
> projection and they must give me the same geolocation for each pixel
> as ENVI does. I am using IDL 6.3

I am WAY out on a limb here (too many margaritas, probably),
but I'm going to guess that this structure tells you that
the "tie-point" associated with the (1,1) pixel (upper-left
pixel in ENVI, I guess) is at (-130.540, 40) in lon/lat,
and that each pixel is scaled at 4.811e-3 in X and Y.
So, starting at the tie point, each pixel has a longitude
of :

lons = -130.540 * Indgen(ysize) * 4.811e-3
lats = 40.00 * Indgen(xsize) * 4.811e-3

You can make arrays of the appropriate size by matrix
multiplication. Units are in degrees, I would guess.

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Interpolation
Next Topic: SHADE_VOLUME and getting disconnected meshes.

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

Current Time: Wed Oct 08 19:56:02 PDT 2025

Total time taken to generate the page: 0.00452 seconds