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

Home » Public Forums » archive » Re: Fast Filled Contour Plots
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: Fast Filled Contour Plots [message #79885 is a reply to message #79883] Tue, 17 April 2012 15:52 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Alain writes:

> The problem in Chris Torrence's code comes from the fact that the
> longitude range in MAP_CONTINENTS is -180°,180° by default, while you
> are using 0°,360° in your example. The trick would be to overplot a
> suitable map over your image:
> im = IMAGE(scaledData, x, y, RGB_TABLE=rgb, XRANGE=xrange,
> YRANGE=yrange, GRID_UNITS='degrees', POSITION=[0.1,0.1,0.9,0.9])
> mp = map('EQUIRECTANGULAR', LIMIT=limit, LABEL_POSITION=0,
> POSITION=[0.1,0.1,0.9,0.9], /CURRENT)
> mc = MapContinents(FILL_COLOR=!COLOR.DARK_GRAY, LIMIT=limit)
> Everything is now correctly clipped and displayed, including the grid
> overlay.
> Note the use of FILL_COLOR instead of COLOR to get continents of the
> right color.
> There is no bug here, just tricky usage of partly (un)documented
> keywords...

Thanks, that works great! I've updated the page with this
useful information.

http://www.idlcoyote.com/graphics_tips/fastfill.php

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: speed-up computation of kernel-based "statistics"
Next Topic: Map Function Question

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

Current Time: Fri Oct 10 06:58:01 PDT 2025

Total time taken to generate the page: 2.08102 seconds