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 #83305 is a reply to message #83304] Mon, 25 February 2013 09:47 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
gpeterso@ucsc.edu writes:

> I am trying to create a contour map of elevation points I have. the file is in .txt form and is an array 824 by 914. I know that each elevation point is equally spaced and the longitude starts at 270 and ends at 360 and the latitude starts at 0 and ends at 90S.
>
> I was able to configure a contour plot of that data, by simply reading in the two-dimensional elevation data and plotting. However, I am not sure if this is actually an accurate representation of the data. I've started to create a program that will assign the appropriate longitude and latitude but I am getting stuck.
>
> If anyone knows how to help me, that would be much appreciated! Thanks

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

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 14:23:47 PDT 2025

Total time taken to generate the page: 0.87965 seconds