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

Home » Public Forums » archive » Get Latitude and Longitude from Tiff files
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: Get Latitude and Longitude from Tiff files [message #54770 is a reply to message #54546] Tue, 03 July 2007 20:18 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Lucia includes the following FOR loops in the example code:

> for i=1,s[0]-1 do begin
> lon[i]=xorigin+xscale*i
> endfor
>
> for i=1,s[1]-1 do begin
> lat[i]=yorigin-yscale*i
> endfor

Yikes! Here are a couple of cases where you almost
get vectorization for free. Help stamp out FORTRAN
coding in IDL!!!

lon = xorigin + xscale * Indgen(s[1])
lat = yorigin - yscale * Indgen(s[0])

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
Previous Topic: IDL ION
Next Topic: Re: how to use Mosaic_doit procedure

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

Current Time: Fri Nov 28 23:19:17 PST 2025

Total time taken to generate the page: 0.88584 seconds