<div dir="ltr"><div><div><div><div>Hi Nicholas,<br><br></div>Yes, you are right about the western border issue: attached is a plot showing NCL's border (in white), and the Shapefile's border (in red). (this map was very quickly put together, please ignore the lack of esthetics). I'm not sure we can do anything about that in the short term. 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. 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">http://ncl.ucar.edu/Applications/shapefiles.shtml</a><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"><<a href="mailto:nbassill@albany.edu" target="_blank">nbassill@albany.edu</a>></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" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>Hi All,<br>
New subscriber, so bear with me here. Two things - (1) a likely bug, and (2) a question. I'm using NCL 6.3. </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) 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 = "Ncarg4_1"</div>
<div>res@mpDataSetName = "Earth..4" </div>
<div>res@mpFillAreaSpecifiers = (/"Land", "Land:North America:United States:Conterminous US:New York","Water"/)</div>
<div>res@mpSpecifiedFillColors = (/"white","transparent", "white"/)</div>
<div>res@mpInlandWaterFillColor = 238</div>
<div>res@mpLandFillColor = -1 ; transparent</div>
<div>res@mpOutlineOn = True</div>
<div>res@mpMaskOutlineSpecifiers = (/"Land"/)</div>
<div>res@mpOutlineSpecifiers = (/ "Land:North America:United States:Conterminous US:New York"/)</div>
<div>res@mpDataBaseVersion = "MediumRes"</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 "HighRes" 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, based largely on <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> for
the mask), and a sample image (current.png). </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 & 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="+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>