<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title></title><style type="text/css">.felamimail-body-blockquote {margin: 5px 10px 0 3px;padding-left: 10px;border-left: 2px solid #000088;} </style></head><body><br>Hello<br><br>Here i attach a plot using the same method as in mask_5.ncl example==>HOWEVER, the landsea.nc mask is quite coarse and covers large grid points.<br>Is there a landsea mask available for 1x1 resolution?<br><br><br><br><br><br><br>On Mar 5, 2018 11:06:13 PM, Dennis Shea wrote:
<br><blockquote class="felamimail-body-blockquote"><div dir="ltr"><div><div><div>Further ....<br><br></div>NCL is distributed with a simple 1x1 global mask. This may be adequate for your needs.<br><br><a href="https://www.ncl.ucar.edu/Applications/mask.shtml" target="_blank">https://www.ncl.ucar.edu/Applications/mask.shtml</a><br></div><div>Example 5<br><br>----<br></div><div><br><a href="https://www.ncl.ucar.edu/Document/Functions/Shea_util/landsea_mask.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Shea_util/landsea_mask.shtml</a><br><br></div>The function indicates that multiple libraries must be loaded. <br>However, if you have 6.2.0 onward these libraries are automatically loaded.<br><br>---<br></div>Good luck<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 5, 2018 at 1:58 PM, Adam Phillips <span dir="ltr"><<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>></span> wrote:<br><blockquote class="felamimail-body-blockquote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr"><div>Hi Sri,</div>To add to Mary's reply you can also tell NCL to color fill the ocean basins last, thereby applying a graphical mask. <div>Example:<br><div>res@mpFillOn = True</div><div>res@mpFillColors = (/-1,0,-1,-1/)   ; set ocean to white, see: <a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/mp.shtml#mpFillColors" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/Resources/mp.shtml#mpFillColors</a></div><div>res@mpFillDrawOrder = "PostDraw"   ; do the map fill <br></div></div><div><div>res@mpPerimDrawOrder = "PostDraw"   ; and perimeter draw last</div><div>res@mpOutlineDrawOrder = "Draw"        ; draw the map outlines second</div><div>res@cnFillDrawOrder = "PreDraw"          ; draw the color-filled contours first</div></div><div><br></div><div>Adam <br></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Mon, Mar 5, 2018 at 1:06 PM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>></span> wrote:<br><blockquote class="felamimail-body-blockquote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr"><div class="gmail_default" style="font-size:small;">Hi,</div><div class="gmail_default" style="font-size:small;"><br></div><div class="gmail_default" style="font-size:small;">Please see our masking examples at:</div><div class="gmail_default" style="font-size:small;"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/mask.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/mask.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">In particular, you may want to look at example mask_5.ncl which uses the landsea_mask function, or example mask_12.ncl which uses a shapefile to do the masking.</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 5, 2018 at 9:50 AM, Sri Nandini <span dir="ltr"><<a href="mailto:snandini@marum.de" target="_blank">snandini@marum.de</a>></span> wrote:<br><blockquote class="felamimail-body-blockquote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>Hello<br><br>I am trying to mask out ocean areas in my plot. <br>Could someone please help me out with this? Is there mask data i can download from NCL?<br><br><br><br></div>
<br>_______________________________________________<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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br><br></blockquote></div><br></div>
<br>_______________________________________________<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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br><br></blockquote></div><br><br style="clear:both;"><div><br></div></div></div><span class="HOEnZb"><span style="color:#888888;">-- <br></span></span><div class="m_568797180559299779gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><span style="color:#888888;">Adam Phillips <br></span></span></div><span><span style="color:#888888;">Associate Scientist,  </span></span><span><span style="color:#888888;">Climate and Global Dynamics Laboratory, NCAR<br></span></span></div></div><div><span><span style="color:#888888;"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </span></span><span><span style="color:#888888;"><a target="_blank">303-497-1726</a> </span></span></div><span><span style="color:#888888;"></span></span><div><div><span><span style="color:#888888;"><br></span></span><div><span><span style="color:#888888;"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></span></span></div></div></div></div></div></div></div></div></div></div></div>
</div>
<br>_______________________________________________<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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br><br></blockquote></div><br></div>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title></title><style type="text/css">.felamimail-body-blockquote {margin: 5px 10px 0 3px;padding-left: 10px;border-left: 2px solid #000088;} </style>_______________________________________________<br>ncl-talk mailing list<br>ncl-talk@ucar.edu<br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br></blockquote><br></body></html>