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 #36866 is a reply to message #36773] Wed, 29 October 2003 12:56 Go to previous messageGo to previous message
Chris[1] is currently offline  Chris[1]
Messages: 23
Registered: January 2003
Junior Member
"Christopher Lee" <cl@127.0.0.1> wrote in message
news:20031029.092226.1398295499.15916@buckley.atm.ox.ac.uk.. .
> 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.

Can't he use just:

contour,rainfall,longitude,latitude,/irregular ;; (assuming lat & lon are in
decimal degrees)

something like that; plus play around with levels, etc.
I don't have IDL up and running right now, so I don't remember :(

(another) 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: Sat Oct 11 13:00:00 PDT 2025

Total time taken to generate the page: 0.71981 seconds