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

Home » Public Forums » archive » Re: Contour mapping of elevation points
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: Contour mapping of elevation points [message #83304 is a reply to message #83303] Mon, 25 February 2013 09:53 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> s = Size(array, /Dimensions)
> lats = Scale_Vector(Findgen(s[0]), 0, 90)
> lons = Scale_Vector(Findgen(s[1]), 270, 360)
> cgContour, array, lons, lats

Oh, 0 to 90S you said. Then,

lats = Scale_Vector(Findgen(s[0]), 0, 90) - 90

It is always hard to say if your array is upside down or not, but you
will have to check. IDL has a different notion of "orgin" on maps then
the rest of the world. Quite often you have to reverse the array to get
it oriented properly. If you do, then:

array = Reverse(array,2)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: mapcontinents with /hires option failing
Next Topic: Contour mapping of elevation points

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

Current Time: Fri Oct 10 20:30:52 PDT 2025

Total time taken to generate the page: 1.28060 seconds