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

> So I have successfully loaded the coyote library but when I try and run the program there is an error that says x,y, or Z dimensions are incompatible. i tried changing the code to
> lons=scale_vector(dindgen(s), 270, 360)
> lats=scale_vector(dindgen(s), 0, 90)
>
> to form two dimension arrays for longitude and latitude. When I ran it there was no system errors. However, the nothing really graphed.

Oh, duh! I had this:

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

And, of course, it should have been this:

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

Really bad day today. It all started when I misspelled "aerosol" as
"areosol". But, it's a long story. :-(

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: Thu Oct 09 07:22:43 PDT 2025

Total time taken to generate the page: 1.75862 seconds