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

Home » Public Forums » archive » Re: lat/lon to km-spaced grid ?
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: lat/lon to km-spaced grid ? [message #74340] Thu, 13 January 2011 13:18
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
nata writes:

> I have a lat/lon grid defined by 2 different arrays:
>
> help, lat, lon
> LAT DOUBLE = Array[1024]
> LON DOUBLE = Array[1024]
>
> I want a km-spaced grid containing the lat/lon points for the same
> domain.
>
> I wrote my own code and I almost have what I want...

Really!? I'd test the hell out of that sucker. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: lat/lon to km-spaced grid ? [message #74342 is a reply to message #74340] Thu, 13 January 2011 13:02 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
I have a lat/lon grid defined by 2 different arrays:

help, lat, lon
LAT DOUBLE = Array[1024]
LON DOUBLE = Array[1024]

I want a km-spaced grid containing the lat/lon points for the same
domain.

I wrote my own code and I almost have what I want...
Re: lat/lon to km-spaced grid ? [message #74345 is a reply to message #74342] Thu, 13 January 2011 12:33 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
nata writes:

> In IDL is not possible ?
> I have no idea of how to use gdalwarp....

Well, I had to guess at the meaning of your question.
Can you be more specific about what you are trying to do?

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: lat/lon to km-spaced grid ? [message #74346 is a reply to message #74345] Thu, 13 January 2011 12:21 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
In IDL is not possible ?
I have no idea of how to use gdalwarp....
Re: lat/lon to km-spaced grid ? [message #74349 is a reply to message #74346] Thu, 13 January 2011 11:49 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
nata writes:

> Which is the best way to convert a lat/lon grid to a km-spaced grid ?

GDALwarp. :-)

http://www.gdal.org/gdalwarp.html

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.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: lat/lon to km-spaced grid ?
Next Topic: Re: r_correlate; get "loop limit expression too large" error with /Kendall

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

Current Time: Wed Oct 08 17:48:51 PDT 2025

Total time taken to generate the page: 0.00725 seconds