[ncl-talk] A better way to do area fill
Wei Huang
whuang at univ-wea.com
Wed Jul 22 08:25:56 MDT 2015
Dear ncl-talk-ers,
I am looking for some help, or better ideas.
Attached is a ncl script to do area fill,
Or in other words, to fill an area with some weather symbols.
The attached script works, but not exactly to the point what wanted.
Currently, it scans all the points within an rectangular area defined
By min(lat), max(lat), min(lon), and max(lon). And check if a given
Point is in the polygon (area), then plot a symbol, otherwise
Do not plot. It works, but will always plot a whole symbols,
therefore caused a problem for those area should be partially
filled, as it will either plot the whole symbol, and not plot at all,
which we truly wanted is a partially plotted symbol.
Anyone has a better idea?
It looks like somehow we should plot all the symbols
In the rectangular area, and then only allow the part
Defined by the polygon can be seen. But I could not
Think of a way to do that.
Any suggestions, comments are welcome.
And certainly appreciate a solution.
Thanks,
Wei Huang
whuang at univ-wea.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fa.ncl
Type: application/octet-stream
Size: 10731 bytes
Desc: fa.ncl
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150722/23692f9e/attachment.obj
More information about the ncl-talk
mailing list