<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Jonathan,<br>
<br>
you can use the
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<a
href="http://ncl.ucar.edu/Document/Graphics/Resources/mp.shtml#mpFillAreaSpecifiers"><em></em></a>
<a
href="http://ncl.ucar.edu/Document/Graphics/Resources/mp.shtml#mpMaskAreaSpecifiers"><em>mpMaskAreaSpecifiers</em></a>
resources to indicate
which map areas to fill and mask.
<br>
See the masking examples mask_4.ncl and mask_8.ncl in the masking
examples section:<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<a class="moz-txt-link-freetext" href="http://ncl.ucar.edu/Applications/mask.shtml">http://ncl.ucar.edu/Applications/mask.shtml</a><br>
<br>
Here is a short script to plot data only for the USA:<br>
<br>
<font color="#3333ff"><tt>begin</tt><tt><br>
</tt><tt> f = addfile("rectilinear_grid_2D.nc","r")</tt><tt><br>
</tt><tt> var = f->tsurf(0,:,:)</tt><tt><br>
</tt><tt><br>
</tt><tt>;-- open workstation</tt><tt><br>
</tt><tt> wks = gsn_open_wks("png","plot_mask_fill_only_USA")</tt><tt><br>
</tt><tt><br>
</tt><tt>;-- set resources</tt><tt><br>
</tt><tt> res = True</tt><tt><br>
</tt><tt> res@cnFillOn = True</tt><tt><br>
</tt><tt> res@cnLineLabelsOn = False</tt><tt><br>
</tt><tt> res@cnInfoLabelOn = False</tt><tt><br>
</tt><tt> res@cnLinesOn = False</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> res@mpMinLonF = 170</tt><tt><br>
</tt><tt> res@mpMaxLonF = 295</tt><tt><br>
</tt><tt> res@mpMinLatF = 22</tt><tt><br>
</tt><tt> res@mpMaxLatF = 74</tt><tt><br>
</tt><tt> res@mpCenterLonF = 215</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> res@mpDataBaseVersion = "Ncarg4_1"</tt><tt><br>
</tt><tt> res@mpAreaMaskingOn = True</tt><tt><br>
</tt><tt> res@mpFillBoundarySets = "NoBoundaries"</tt><tt><br>
</tt><tt><br>
</tt><tt> res@mpMaskAreaSpecifiers = "united
states" ;-- enable masking and specify the
area</tt><tt><br>
</tt><tt> res@mpOutlineBoundarySets = "USStates"
;-- draw US and state outlines</tt><tt><br>
</tt><tt> res@cnFillDrawOrder = "Predraw" </tt><tt><br>
</tt><tt><br>
</tt><tt>;-- create the plot </tt><tt><br>
</tt><tt> plot = gsn_csm_contour_map(wks,var,res)</tt><tt><br>
</tt><tt><br>
</tt><tt>end</tt></font><br>
<br>
Bye, Karin<br>
<br>
<div class="moz-cite-prefix">Am 16.12.16 um 02:58 schrieb Buzan,
Jonathan R:<br>
</div>
<blockquote
cite="mid:C2723F81-DEE9-48D8-8384-EEAEE7AF5AB6@purdue.edu"
type="cite">
<pre wrap="">Hi NCL-Talk
I am attempting to mask everything except for the United States.
I’ve tried Conterminous US: States, etc. And It keeps saying it doesn’t recognize the mpMaskAreaSpecifiers string.
-Jonathan
_______________________________________________
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>