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

Home » Public Forums » archive » about contour
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: about contour [message #36773 is a reply to message #28256] Wed, 29 October 2003 01:22 Go to previous messageGo to previous message
Chris Lee is currently offline  Chris Lee
Messages: 101
Registered: August 2003
Senior Member
In article <eceee805.0310282257.1de74ee3@posting.google.com>, "Park Kyung
Won" <parkkw@mail1.pknu.ac.kr> wrote:


> Hello
> I want to draw contour.
> Array must be 2 dimension.
> I have ground rainfall data and longitute,latitute data about weather
> station. This data is all 1 dimension data.
> rainfall(300)
> longitute(300)
> latitute(300)
> How can I draw using contour?

Hi,

I'm guessing you want to do a spherical triangulation (instead of a
'regular' triangulation).

Use SPH_SCAT...e.g.

r = SPH_SCAT(longitude, latitude, rainfall, BOUNDS=[0, -90, 360, 90], $
GS=[10,5], gout=gout,bout=bout)

;gout and bout contain the information about the new regular grid,
; stored in r.
;GS is the grid resolution in degrees

x=findgen((gout[0]+bout[2]-bout[0])/gout[0])*gout[0]+bout[0]
y=findgen((gout[1]+bout[3]-bout[1])/gout[1])*gout[1]+bout[1]
contour, r, x,y

;;;;;;;

If you do want a non-spherical triangulation, use TRIANGULATE and
TRIGRID, the help file can tell you how to use them much better than I
can.

Chris.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: big file navigation
Next Topic: Re: determing object type at runtime in IDL

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

Current Time: Sun Oct 12 00:17:27 PDT 2025

Total time taken to generate the page: 1.51888 seconds