<div dir="ltr"><div>Hmmm...it looks to me everything is working as it expected. Figure 1 looks right. Figure 2 -- yes that's a larger spatial domain and the MPAS cells overwhelm the map. You could try something like making the map outlines white some other contrasting color (and probably would want PostDraw for this purpose). But I'm not sure the resultant map would be any more useful. Figure 3 is again out over the ocean, and is more than half as small a domain, spatially, as Fig 2.</div><div><br></div><div>A final thought on Fig 2. -- you could play with the opacity of the grid; make it highly translucent. Probably still too dense.</div><div><br></div><div>HTH...</div><div>Rick</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 15, 2022 at 3:21 PM Gurer, Kemal@ARB <<a href="mailto:kemal.gurer@arb.ca.gov">kemal.gurer@arb.ca.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg1867372840934822502">
<div style="overflow-wrap: break-word;" lang="EN-US">
<div class="m_1867372840934822502WordSection1">
<p class="MsoNormal">Hi Rick,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I feel really bad that I didn’t see invoking map twice. Since I was playing around with map, I simply forgot to delete the second call. It is my mistake. I apologize for this mistake and taking your time.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I can now plot the grid cells with map on it. Yet, the problem actually still persists. I can plot both map grid outlines and MPAS grid cells if I zoom in very close to the map. Here is the code that I change to play with map and grid cells:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">; ---------- This plots both map boundaries and MPAS grid cells due to zooming in on the map at San Francisco Bay. Both of them are visible. Please see attached figure 1 ----------<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">res@mpMinLatF = 36 <u></u><u></u></p>
<p class="MsoNormal"> res@mpMaxLatF = 39 ; choose subregion<u></u><u></u></p>
<p class="MsoNormal">res@mpMinLonF = -124 <u></u><u></u></p>
<p class="MsoNormal"> res@mpMaxLonF = -121<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">map = gsn_csm_map(wks,res)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">; --------- This plots both map boundaries and MPAS grid cells. But, MPAS grid cells crowd the plot and map and grid cells are not discernible. Map boundary is just outside of California and Nevada. Please see figure 2 -----<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">res@mpMinLatF = 31.5<u></u><u></u></p>
<p class="MsoNormal">res@mpMaxLatF = 43 ; choose subregion<u></u><u></u></p>
<p class="MsoNormal">res@mpMinLonF = -127.5<u></u><u></u></p>
<p class="MsoNormal">res@mpMaxLonF = -113<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">map = gsn_csm_map(wks,res)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">; -------- This only plots MPAS grid cells. Map boundaries are not plotted. Map boundary is slightly bigger than the domain covering in Figure 2. Please see figure 3--------<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"> res@mpMinLatF = 30<u></u><u></u></p>
<p class="MsoNormal"> res@mpMaxLatF = 35<u></u><u></u></p>
<p class="MsoNormal"> res@mpMinLonF = -130<u></u><u></u></p>
<p class="MsoNormal"> res@mpMaxLonF = -125<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">; ------------------------------------------<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Kemal.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div style="border-color:rgb(225,225,225) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0in 0in">
<p class="MsoNormal"><b>From:</b> Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>> <br>
<b>Sent:</b> Thursday, September 15, 2022 1:38 PM<br>
<b>To:</b> Gurer, Kemal@ARB <<a href="mailto:kemal.gurer@arb.ca.gov" target="_blank">kemal.gurer@arb.ca.gov</a>><br>
<b>Cc:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a> forum <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
<b>Subject:</b> Re: [ncl-talk] draw order issue<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border:1pt solid rgb(156,101,0);padding:2pt">
<p class="MsoNormal" style="line-height:12pt;background:rgb(255,235,156) none repeat scroll 0% 0%"><b><span style="font-size:10pt;color:rgb(156,101,0)">CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know
the content is safe.</span></b><span style="font-size:10pt;color:black"> <u></u>
<u></u></span></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal">OK, <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">In the script, as presented to us, there are two calls to gsn_csm_map. They have different lat/lon extents and they both assign the result to the variable "map" (I'm suprised there was no error/warning). In any case, the 2nd set of lat/lon
extents are off the coast. That second set is what the MPAS appears to be drawing on top of. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">HTH...<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Rick<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Thu, Sep 15, 2022 at 1:56 PM Gurer, Kemal@ARB <<a href="mailto:kemal.gurer@arb.ca.gov" target="_blank">kemal.gurer@arb.ca.gov</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<p class="MsoNormal">Hi Rick,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I tried that before. It didn’t help. That is, MPAS grid cells are still plotted without map outlines.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Kemal.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div style="border-style:solid none none;border-width:1pt medium medium;padding:3pt 0in 0in;border-color:currentcolor">
<p class="MsoNormal"><b>From:</b> Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>>
<br>
<b>Sent:</b> Thursday, September 15, 2022 12:39 PM<br>
<b>To:</b> Gurer, Kemal@ARB <<a href="mailto:kemal.gurer@arb.ca.gov" target="_blank">kemal.gurer@arb.ca.gov</a>><br>
<b>Cc:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a> forum <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
<b>Subject:</b> Re: [ncl-talk] draw order issue<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div style="border:1pt solid rgb(156,101,0);padding:2pt">
<p class="MsoNormal" style="line-height:12pt;background:rgb(255,235,156) none repeat scroll 0% 0%">
<b><span style="font-size:10pt;color:rgb(156,101,0)">CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.</span></b><span style="font-size:10pt;color:black">
</span><u></u><u></u></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal">Hi Kemal,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">What does the plot look like when you try to plot both map and lines together? Have you tried without the
<u></u><u></u></p>
<pre style="margin-bottom:12pt">mpOutlineDrawOrder resource?<u></u><u></u></pre>
<pre>Rick<u></u><u></u></pre>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">On Thu, Sep 15, 2022 at 1:22 PM Gurer, Kemal@ARB via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-style:none none none solid;border-width:medium medium medium 1pt;padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt;border-color:currentcolor currentcolor currentcolor rgb(204,204,204)">
<div>
<div>
<div>
<p class="MsoNormal">Hello ncl’ers,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I am trying to plot MPAS grid cells on the top of US map using ncl. I attached the script that plots map and outlines. I can draw maps and MPAS grid cells separately, but I cannot
plot map outline on the top of MPAS grid cells even though I set the draw order to “PostDraw”. Could you help me to identify what I am doing wrong?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Kemal.<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.ucar.edu%2Fmailman%2Flistinfo%2Fncl-talk&data=05%7C01%7Ckemal.gurer%40arb.ca.gov%7Cd8ac0d3230c04096b2a108da975a391a%7C9de5aaee778840b1a438c0ccc98c87cc%7C0%7C0%7C637988711017089328%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jU%2FdAvt6EklQ%2BCBkH7xGqwgBeCy8AeAX88nzNcRxnC4%3D&reserved=0" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><u></u><u></u></p>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div></blockquote></div>