<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi Rick,<br>
&nbsp; &nbsp; Thanks for the reply. I guess I must have missed that masking doesn't work with the high-res datasets, so sorry about that.&nbsp;<br>
<br>
I've played around with shapefiles a little, but in our case we're interested in making some production-quality images pretty much in real-time, so the issue of &quot;missing&quot; data near the state boundaries is kind of a deal-breaker. Since all we care about is plotting
 the data,&nbsp;I think the best bet for the moment is to mask with medium-res, and interpolate our data to the correct western NY boundary so that the incorrect portion does not plot. Something like this:&nbsp;<a href="http://www.atmos.albany.edu/facstaff/nbassill/live/regularmercator.png" class="OWAAutoLink" id="LPlnk844938" previewremoved="true">http://www.atmos.albany.edu/facstaff/nbassill/live/regularmercator.png</a></p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p><span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">Nick Bassill, PhD</span></p>
<p style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">
Modeler &amp;&nbsp;Meteorologist, New York State Mesonet</p>
<p style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">
LC SB-28, 1400 Washington Ave.,</p>
<p style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">
SUNY, University at Albany, NY 12222</p>
(518) 442-6375
<p></p>
<p>http://nysmesonet.org/<br>
</p>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Rick Brownrigg &lt;brownrig@ucar.edu&gt;<br>
<b>Sent:</b> Friday, February 17, 2017 5:24 PM<br>
<b>To:</b> Bassill, Nicholas<br>
<b>Cc:</b> ncl-talk@ucar.edu<br>
<b>Subject:</b> Re: [ncl-talk] New York Map issue(s)</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>Hi Nicholas,<br>
<br>
</div>
Yes, you are right about the western border issue:&nbsp; attached is a plot showing NCL's border (in white), and the Shapefile's border (in red).&nbsp; (this map was very quickly put together, please ignore the lack of esthetics).&nbsp; I'm not sure we can do anything about
 that in the short term.&nbsp; I'll file a bug report.<br>
<br>
</div>
<div>As for the second issu, the docs do explicitly state that NCL's builtin masking functions do not work with the HighRes/RANGS map databases.<br>
</div>
<div><br>
</div>
However, for both purposes, state boundaries and masking, you might want to consider using a shapefile as a source.&nbsp; Check out the examples page for both a link to a good source of shapefiles, GADM, and for examples of how to use them to perform masking.<br>
<br>
<a href="http://ncl.ucar.edu/Applications/shapefiles.shtml" id="LPlnk79074" previewremoved="true">http://ncl.ucar.edu/Applications/shapefiles.shtml</a>
<div id="LPBorder_GT_14876022970920.1673643345297613" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14876022970910.9525513008577227" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_14876022970910.8095884423077497" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14876022970910.4616077722235692"></div>
<div id="LPTitle_14876022970910.27262370000279" style="top: 0px; color: rgb(0, 120, 215); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, &quot;Segoe UI Light&quot;, &quot;Segoe WP Light&quot;, &quot;Segoe UI&quot;, &quot;Segoe WP&quot;, Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14876022970910.18098182756978698" href="http://ncl.ucar.edu/Applications/shapefiles.shtml" target="_blank" style="text-decoration: none;">NCL and Shapefiles</a></div>
<div id="LPMetadata_14876022970910.14221027835487732" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, &quot;Segoe UI&quot;, &quot;Segoe WP&quot;, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
ncl.ucar.edu</div>
<div id="LPDescription_14876022970920.023730046067000243" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, &quot;Segoe UI&quot;, &quot;Segoe WP&quot;, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
Shapefiles. Shapefiles are a supported data format. in NCL, and hence can be read with addfile. Unlike other supported formats, however, a &quot;shapefile&quot; refers to a ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<br>
</div>
Hope this helps...<br>
</div>
Rick<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Feb 17, 2017 at 8:59 AM, Bassill, Nicholas <span dir="ltr">
&lt;<a href="mailto:nbassill@albany.edu" target="_blank">nbassill@albany.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="m_-6855215173812133369divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi All,<br>
&nbsp; &nbsp; New subscriber, so bear with me here. Two things - (1) a likely bug, and (2) a question. I'm using NCL 6.3.&nbsp;</p>
<p><br>
</p>
<p>(1) It appears that the state boundaries for New York are slightly off in the far western boundary. I'm attaching an image (NY.png)&nbsp;that plots the state of NY, but with data that is specifically limited by the *actual* western border to demonstrate this.</p>
<p><br>
</p>
<p>The relevant map settings are:</p>
<p><br>
</p>
<p></p>
<div>res@mpDataBaseVersion &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;Ncarg4_1&quot;</div>
<div>res@mpDataSetName &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;Earth..4&quot; &nbsp;</div>
<div>res@mpFillAreaSpecifiers &nbsp; &nbsp; &nbsp; &nbsp;= (/&quot;Land&quot;, &quot;Land:North America:United States:Conterminous US:New York&quot;,&quot;Water&quot;/)</div>
<div>res@mpSpecifiedFillColors &nbsp; &nbsp; &nbsp; = (/&quot;white&quot;,&quot;transparent&quot;, &nbsp; &nbsp; &nbsp; &quot;white&quot;/)</div>
<div>res@mpInlandWaterFillColor &nbsp; &nbsp; &nbsp;= 238</div>
<div>res@mpLandFillColor &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = -1 &nbsp; &nbsp; ; transparent</div>
<div>res@mpOutlineOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = True</div>
<div>res@mpMaskOutlineSpecifiers = &nbsp; (/&quot;Land&quot;/)</div>
<div>res@mpOutlineSpecifiers = &nbsp; (/ &quot;Land:North America:United States:Conterminous US:New York&quot;/)</div>
<div>res@mpDataBaseVersion = &quot;MediumRes&quot;</div>
<br>
<p></p>
<p><br>
</p>
<p>(2) Partially based off of that, and in an effort to have a more detailed coastline, I decided to try the &quot;HighRes&quot; dataset. However, I am not able to successfully do any masking. In this case I want *only* a fill in the shape of NY. For this I'm attaching
 the dataset I'm using (currenttemp.dat), the script I'm using (temp.ncl,&nbsp;based largely on&nbsp;<a href="http://www.ncl.ucar.edu/Applications/Scripts/mask_8.ncl" class="m_-6855215173812133369OWAAutoLink" id="m_-6855215173812133369LPlnk638081" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/Scripts/mask_8.<wbr>ncl</a>&nbsp;for
 the mask), and a sample image (current.png).&nbsp;</p>
<br>
<p>Any help with (2) would be greatly appreciated!</p>
<p><br>
</p>
<div id="m_-6855215173812133369Signature">
<div id="m_-6855215173812133369divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p><span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">Nick Bassill, PhD</span></p>
<p style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">
Modeler &amp;&nbsp;Meteorologist, New York State Mesonet</p>
<p style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">
LC SB-28, 1400 Washington Ave.,</p>
<p style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px">
SUNY, University at Albany, NY 12222</p>
<a href="tel:(518)%20442-6375" value="&#43;15184426375" target="_blank">(518) 442-6375</a>
<p></p>
<p><a href="http://nysmesonet.org/" target="_blank">http://nysmesonet.org/</a><br>
</p>
</div>
</div>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a 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" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>