|
|
Re: filled contour plot within a polygon [message #93121 is a reply to message #93108] |
Fri, 29 April 2016 03:26  |
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.
|
|
|