<div dir="auto">Remember to include ncl-talk in all replies.<div dir="auto"><br></div><div dir="auto">I believe you can do that easily with the examples that I suggested to you.</div><div dir="auto"><br></div><div dir="auto">When you have masked the data using the example you can already plot it and it will look like that, provided that you turn off the normal map outline with mpOutlineOn=False.</div><div dir="auto"><br></div><div dir="auto">If you want the outline you just need to plot the shapefile with the desired region using one of the common  functions. </div></div><div class="gmail_extra"><br><div class="gmail_quote">Il 6 mar 2018 12:21 PM, "Leo Niu" <<a href="mailto:leo2018niu@gmail.com">leo2018niu@gmail.com</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for all your response.<div><img src="cid:ii_jeeyseqi0_161f8e23baeadba0" width="251" height="155"><br><p class="MsoNormal"><span style="font-family:宋体;font-size:10.5pt">I have a polygon shapefile of the blue area.And I want to mask outside of this area. Just the blue area is remained.I know the maps sources, like @mpAreaMaskongOn<font face="宋体">、</font><font face="Calibri">@mpAreaNames etc. But I don</font></span><span style="font-family:Calibri;font-size:10.5pt">’</span><span style="font-family:宋体;font-size:10.5pt">t want to use Ncarg4_0 database,even seting @mpDataBaseVersion to be </span><span style="font-family:Calibri;font-size:10.5pt">“HighRes”</span><span style="font-family:宋体;font-size:10.5pt"> . because boundaries in the database can</span><span style="font-family:Calibri;font-size:10.5pt">’</span><span style="font-family:宋体;font-size:10.5pt">t match it in my shapefile. Polylines and polygons in my shapefile are more detailed.</span><span style="font-family:宋体;font-size:10.5pt"><span></span></span></p><p class="MsoNormal"><span style="font-family:宋体;font-size:10.5pt">Finally, I</span><span style="font-family:Calibri;font-size:10.5pt">’</span><span style="font-family:宋体;font-size:10.5pt">m willing to get a plot like this:</span><span style="font-family:宋体;font-size:10.5pt"><span></span></span></p><p class="MsoNormal"><span style="font-family:宋体;font-size:10.5pt"><img src="cid:ii_jeeysrok1_161f8e27d0463d4f" width="335" height="207"><br>Is that clear?</span></p><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-03-05 21:12 GMT+08:00 Guido Cioni <span dir="ltr"><<a href="mailto:guidocioni@gmail.com" target="_blank">guidocioni@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">It looks to me that example 11 in this page <a href="https://www.ncl.ucar.edu/Applications/shapefiles.shtml" target="_blank">https://www.ncl.ucar.edu/<wbr>Applications/shapefiles.shtml</a> does exactly what you want to do, specifically read a shapefile, select an area to mask, save the mask to a netcdf file and then use this variable to mask the original data (i advise you to create the netcdf at first otherwise it will take so much to use the shapefile every time).<div dir="auto"><br></div><div dir="auto">Otherwise you have to explain better what you want to do ;-)</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-2562401090746025170h5">Il 5 mar 2018 11:22 PM, "Leo Niu" <<a href="mailto:leo2018niu@gmail.com" target="_blank">leo2018niu@gmail.com</a>> ha scritto:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-2562401090746025170h5">

    

<div>
<div style="line-height:1.6;font-family:'\0082f9\0065b9','\005fae\008f6f\0096c5\009ed1','sans-serif'"><font style="font-size:17px"><br>I'm ploting a contour of an area. But boundries of the interest area in Ncarg4_0 database can't match with my shapefile. I have searched for ploting an area and masking outside using a polyline or polygon shapefile on <a href="http://www.ncl.ucar.edu.But" target="_blank">www.ncl.ucar.edu.But</a> I haven't found a method dealing with this. Is there some ways that can help in ploting contour of an area only inside of a geocoded polygon?<br>Thanks a lot.</font></div><u></u>



    
    
    


<div style="margin:0;padding:0">
    <a href="https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?iconUrl=https://mail-online.nosdn.127.net/qiyelogo/defaultAvatar.png&name=leo2018niu&uid=leo2018niu%40gmail.com&ftlId=3&items=%5B%22%E9%82%AE%E7%AE%B1%EF%BC%9Aleo2018niu%40gmail.com%22%5D" width="400" style="display:block;max-width:400px;background:#fff;padding:15px 0 10px 0;text-decoration:none;outline:none" target="_blank">
        <table cellpadding="0" style="width:100%;max-width:100%;table-layout:fixed;border-collapse:collapse;border-spacing:0;line-height:1.3;color:#9b9ea1;font-size:14px">
            <tbody style="font-family:'PingFang SC','Hiragino Sans GB','WenQuanYi Micro Hei','Microsoft Yahei','\005fae\008f6f\0096c5\009ed1',verdana!important;word-wrap:break-word;word-break:break-all">
                <tr>
                    <td width="45" style="padding:0 7px 0 0;box-sizing:border-box;width:45px">
                        <img width="38" height="38" style="width:38px;height:38px;border-radius:50%" src="https://mail-online.nosdn.127.net/qiyelogo/defaultAvatar.png">
                    </td>
                    <td style="padding:0 0 0 7px">
                        <div style="max-width:380px">
                            <div style="box-sizing:border-box;padding-right:35px;font-size:16px;margin-bottom:5px;color:#31353b;font-weight:bold;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">leo2018niu</div>
                            <div style="font-size:0;line-height:0">
                            </div>
                                <div style="word-wrap:break-word;word-break:break-all">
                                    邮箱:leo2018niu@gmail.com
                                </div>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </a>
</div>

<div style="margin:0"><p style="margin:0;border-top:1px solid #e5e5e5;padding-top:6px;font-size:12px;color:#b6b8bb;line-height:1.5">签名由 <a href="https://mail.163.com/dashi/dlpro.html?from=mail88" style="color:#6aa8f6;text-decoration:none" target="_blank">网易邮箱大师</a> 定制</p></div>
</div>
<br></div></div>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div></div>
</blockquote></div><br></div>
</blockquote></div></div>