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 #68482 is a reply to message #68481] Sat, 31 October 2009 10:00 Go to previous messageGo to previous message
Libo Wang is currently offline  Libo Wang
Messages: 6
Registered: October 2009
Junior Member
On Oct 31, 12:09 pm, David Fanning <n...@dfanning.com> wrote:
> 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.")- Hide quoted text -
>
> - Show quoted text -

Thanks, David. I've read helpful tips in your website. It is actually
a bit of both aesthetic problem and a science problem! A meteorologist
would probably tell me that my map is not what a standard pressure
field plot should look like!

I tried to expand my data from 144*37 to 1440*370 using cubic=-0.5 in
Congrid,the contour map did improved in some parts, but some parts got
worse:

http://picasaweb.google.com/lh/photo/pbT1Ftfbx0nqS9O3uw0tGg? feat=directlink

The NCEP data is low in resolution: 2.5 degree spacing. What else
could I try?
[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 11:39:44 PDT 2025

Total time taken to generate the page: 0.87642 seconds