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

Home » Public Forums » archive » Re: weird contour lines
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: weird contour lines [message #68483 is a reply to message #68482] Sat, 31 October 2009 09:09 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Libo Wang writes:

> Hi, I used the following code to set up a stereographic projection map
> and overplot NCEP pressure field on it:
>
> MAP_SET,/stereographic, 60, -105,color=grey,limit=[30,-180,80.0,-10],/
> continents,/isotropic
> levels = 16
> step=4
> userLevels = IndGen(levels) * step + 120
> Contour, data,lon,lat,C_Colors=black,Levels=userLevels, /overplot
> Contour, data,lon,lat,/Overplot,
> Levels=userLevels,c_colors=black,c_charthick=2,$
> max_value=200,min_value=120,/Follow
>
> However, I got weird contour lines, which you could take a look at the
> following link:
> http://picasaweb.google.com/libowa/DropBox?feat=directlink
>
> Could you point out what was wrong in my codes? How could I get smooth
> contour lines?

Is this an aesthetic problem or a science problem?

If it is an aesthetic problem, that NCEP data is fairly low-resolution.
You could try CONGRIDing it to a larger size, using interpolation,
before contouring it. Or, you could just try smoothing your data
before you contour it.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Fun with Int_tabulated.pro
Next Topic: Re: Set Intersection Code

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

Current Time: Fri Oct 10 03:29:57 PDT 2025

Total time taken to generate the page: 0.16165 seconds