<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Hi Rick,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Thank you very much for the very thoughtful suggestions!</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">I tried several more ways, such as loading shapefile containing the climate division in NCL, loading shapefile containing the counties in NCL or both. But since the sources of these data are inconsistent with each other, the plots I got are not 100% matched. I also tried to lay two maps on each other. But as you said, we can&#39;t do this in NCL. </div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Nevertheless, I loaded shapefile containing the counties and used NCL&#39;s default setting to enable the climate division boundaries and got something like below (not perfect but acceptable.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Again, thank you very much for your time!</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Ling</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><img src="cid:ii_14cc465a7a86cac9" alt="Inline image 1" width="414" height="472"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 16, 2015 at 4:28 PM, Rick Brownrigg <span dir="ltr">&lt;<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.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>(please ignore the previous unintelligible post -- accidentally got away from me)<br><br></div><div>Hi Ling,<br><br></div><div>I too did not fully understand your original post and why you were introducing the  <a href="http://climdiv_polygon.nc" target="_blank">climdiv_polygon.nc</a> dataset. I see the issue now.   As far as I know, there is no other readily available source of these boundaries that&#39;s guaranteed to line up with NCL&#39;s map database.<br><br>At first, I thought perhaps overlay plots, using Earth..2 and Earth..3 as in your original attempt would work. But after trying this, I learned that map-plot objects can not be overlaid on top of other plots (they can only be the base plot in an overlay).<br></div><div><br>I hesitate to even show this second possibility, because it is a giant hack. But it involves suppressing framing of the page, and drawing two maps directly on top of each other. All the external annotations (labels, titles, tick marks, labelbars, etc.) have to be the same in both plots or the two maps won&#39;t line up on the page;  this trick might not work for your case.  <br><br></div><div>In any event, attached is a script that shows climate divisions for Colorado along with the county boundary for Boulder county. It uses NCLs internal database in both case.   It is drawn from the last example (shapefile_15.ncl) on the following page, and heavily modified:<br><br><a href="http://ncl.ucar.edu/Applications/maponly.shtml" target="_blank">     http://ncl.ucar.edu/Applications/maponly.shtml</a><br><br></div><div>I wish I had a better answer...<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>Rick<br></div><div><br></div><br></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 16, 2015 at 3:15 PM, Rick Brownrigg <span dir="ltr">&lt;<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.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><div><br><br></div>It is drawn from the last example (shapefile_15.ncl) on the following page, and heavily modified:<br><br><a href="http://ncl.ucar.edu/Applications/maponly.shtml" target="_blank">http://ncl.ucar.edu/Applications/maponly.shtml</a><br><br></div>and is hea<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 16, 2015 at 9:48 AM, Ling Huang <span dir="ltr">&lt;<a href="mailto:hlbutterflyut@gmail.com" target="_blank">hlbutterflyut@gmail.com</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 class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Hi Rick,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">As pointed by Alan, the climate division boundaries should align with the county boundaries, IF both were from NCL&#39;s default settings.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">I guess the problem lies in the &quot;<a href="http://climdiv_polygon.nc" target="_blank">climdiv_polygon.nc</a>&quot; file that I downloaded from NCL&#39;s website. The latitude and longitude provided by this file seem mismatched with the default NCL setting as shown below. Maybe there is another file that is more consistent with NCL&#39;s default setting?<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Thanks</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Ling</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default"><img src="cid:ii_14cc2c743ed66a9b" alt="Displaying image.png" style="margin-right:0px" height="563" width="492"><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 16, 2015 at 8:51 AM, Rick Brownrigg <span dir="ltr">&lt;<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.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><div>Hi Ling,<br><br></div>This is a tough one -- off hand it looks like a classic issue of mixing two disparate geodata sources of very different scales/resolutions, which typically incur alignment/registration issues. If that&#39;s what is going on, I don&#39;t think there&#39;s much you can really do about it. Do you know what are the relative scales of the different sources?   Is there a reason to believe the climate division boundaries would align with the county (political) boundaries? (e.g., are they semi-arbitrarily defined that way for convenience?)<br><br></div>Rick  <br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Apr 15, 2015 at 9:43 PM, Ling Huang <span dir="ltr">&lt;<a href="mailto:hlbutterflyut@gmail.com" target="_blank">hlbutterflyut@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Dear NCL talk,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">I want to show boundaries of climate division and counties over the same plot. But the boundaries of climate divisions and counties are provided by different map dataset, which means I can only draw each at a time. Is there a way that I can show them at the same time? For example, I want to combine the following two plots into one plot.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">The left one shows the boundaries of climate divisions and the right one shows county. </div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><img src="cid:ii_14cc04fb93f7b9eb" alt="Inline image 1" style="margin-right:0px" height="182" width="159"><img src="cid:ii_14cc0501db7eee0e" alt="Inline image 2" style="margin-right:0px" height="182" width="159"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">I tried to load counties boundaries while reading the &quot;<a href="http://climdiv_polygons.nc" target="_blank">climdiv_polygons.nc</a>&quot; to plot a polyline for the climate division. But it seems the boundaries do not match, like below:</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><img src="cid:ii_14cc052bcbbac78d" alt="Inline image 3" height="455" width="399"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Is there a way that I can do this? </div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Thank you very much!</div><span><font color="#888888"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Ling</div></font></span></div>
<br></div></div>_______________________________________________<br>
ncl-talk mailing list<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>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>