Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Geographic ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 9 Topic 5634 of 6017
Post > Topic >>

Re: Geographic Lat/Lon

by David Fanning <news@[EMAIL PROTECTED] > Apr 11, 2008 at 03:59 PM

robinson.inj@[EMAIL PROTECTED]
 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/
Se****e ma de ni thui. ("Perhaps thou speakest truth.")
 




 9 Posts in Topic:
Geographic Lat/Lon
robinson.inj@[EMAIL PROTE  2008-04-11 10:14:41 
Re: Geographic Lat/Lon
d.poreh@[EMAIL PROTECTED]  2008-04-11 11:13:13 
Re: Geographic Lat/Lon
robinson.inj@[EMAIL PROTE  2008-04-11 14:20:50 
Re: Geographic Lat/Lon
Jean H <jghasban@[EMAI  2008-04-11 15:39:10 
Re: Geographic Lat/Lon
David Fanning <news@[E  2008-04-11 15:59:20 
Re: Geographic Lat/Lon
David Fanning <news@[E  2008-04-11 16:00:57 
Re: Geographic Lat/Lon
robinson.inj@[EMAIL PROTE  2008-04-11 15:33:06 
Re: Geographic Lat/Lon
David Fanning <news@[E  2008-04-11 17:33:26 
Re: Geographic Lat/Lon
jeffnettles4870@[EMAIL PR  2008-04-12 15:45:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 22:09:46 CDT 2008.