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

Home » Public Forums » archive » filled contour plot within a polygon
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
filled contour plot within a polygon [message #93103] Thu, 28 April 2016 02:18 Go to next message
yunfzhang is currently offline  yunfzhang
Messages: 3
Registered: April 2016
Junior Member
http://www.esrl.noaa.gov/psd/data/narr/images/narr.plot2.png
that's exactly what i want,a filled contour plot with clear boundary lines, EXCEPT for the example is plotted using standard products but i've only tens of irregular-gridded data points in a state. Any guy tried this before? i think it's a huge task.
Re: filled contour plot within a polygon [message #93108 is a reply to message #93103] Thu, 28 April 2016 09:16 Go to previous messageGo to next message
ZP Yin is currently offline  ZP Yin
Messages: 3
Registered: April 2016
Junior Member
On Thursday, April 28, 2016 at 5:18:42 PM UTC+8, yunf...@hotmail.com wrote:
> http://www.esrl.noaa.gov/psd/data/narr/images/narr.plot2.png
> that's exactly what i want,a filled contour plot with clear boundary lines, EXCEPT for the example is plotted using standard products but i've only tens of irregular-gridded data points in a state. Any guy tried this before? i think it's a huge task.

I'm afraid IDL has supported all the functions you may need to make it done.
First, using GRIDDATA() to interpolate irregular gridded data to a regular grid. Then using CONTOUR() to draw a filled contour plot. At last, Using MAP() and MAPCONTINENTS() to load the boundary lines. Most of the functions are available above IDL8.0.
I hope these may be helpful to you.
Re: filled contour plot within a polygon [message #93121 is a reply to message #93108] Fri, 29 April 2016 03:26 Go to previous message
yunfzhang is currently offline  yunfzhang
Messages: 3
Registered: April 2016
Junior Member
Thank you for the reply.
i tried using contour() which automatically grids the data and map, mapcontinents, but contour() will plot all the rectangular area, not just a polygon area i'm interested in. outside the polygon area is the sea, where surface temperature data loses its meaning.

在 2016年4月29日星期五 UTC+8上午12:16:55,ZP Yin写道:
> On Thursday, April 28, 2016 at 5:18:42 PM UTC+8, yunf...@hotmail.com wrote:
>> http://www.esrl.noaa.gov/psd/data/narr/images/narr.plot2.png
>> that's exactly what i want,a filled contour plot with clear boundary lines, EXCEPT for the example is plotted using standard products but i've only tens of irregular-gridded data points in a state. Any guy tried this before? i think it's a huge task.
>
> I'm afraid IDL has supported all the functions you may need to make it done.
> First, using GRIDDATA() to interpolate irregular gridded data to a regular grid. Then using CONTOUR() to draw a filled contour plot. At last, Using MAP() and MAPCONTINENTS() to load the boundary lines. Most of the functions are available above IDL8.0.
> I hope these may be helpful to you.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: syntax for calling parent class _overloadPlus method
Next Topic: ITools and CentOS 6.7

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

Current Time: Wed Oct 08 09:09:11 PDT 2025

Total time taken to generate the page: 0.00488 seconds