<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Sri,<br>
<br>
the landsea.nc mask file is OK. If your data is on a 1x1 deg grid
too than it should look like the attached plot. Maybe you have to
regrid your data to the same 1x1 deg grid.<br>
<br>
If you want to generate mask files yourself for different grids you
can use the CDOs. <br>
E.g. mask ocean 1x1 deg (r360x180):<br>
<br>
<font color="#3333ff"><tt> cdo -f nc -expr,'topo = ((topo >
0.0)) ? 1.0 : 0.0' -remapycon,r360x180 -topo
mask_the_ocean_1x1deg.nc</tt></font><br>
<br>
-Karin<br>
<br>
<div class="moz-cite-prefix">Am 06.03.18 um 13:21 schrieb Sri
Nandini:<br>
</div>
<blockquote type="cite"
cite="mid:4dff22a721d677e1effbbcc3c8fdb475f7687364@marum.de">
<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>
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" moz-do-not-send="true">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" moz-do-not-send="true">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"
moz-do-not-send="true">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" moz-do-not-send="true">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"
moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">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" moz-do-not-send="true">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options,
unsubscribe:<br>
<a
href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk"
target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options,
unsubscribe:<br>
<a
href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk"
target="_blank" moz-do-not-send="true">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"
moz-do-not-send="true">www.cgd.ucar.edu/staff/asphilli/</a>
</span></span><span><span
style="color:#888888;"><a
target="_blank"
moz-do-not-send="true">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;"></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"
moz-do-not-send="true">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a
href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk"
target="_blank" moz-do-not-send="true">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>
<a class="moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk"
target="_blank" moz-do-not-send="true">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ncl-talk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a class="moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
</blockquote>
<br>
</body>
</html>