<div dir="ltr"><div><div><div><div><div><div>Hi Scott,<br><br></div>Try setting this environment variable before running the script:<br><br></div> export NCARG_OLD_PS=True (assuming bash shell)<br><br></div>The issue is that the KML NCL-code that does cropping of pieces of a plot expects that postscript plots have been generated. NCL in fact has two different postscript drivers, one I'll call the original driver, the other the newer cairo-based driver. At some point in recent versions of NCL (6.2.0 perhaps -- can't recall exactly), the cairo driver became the default when one simply opens a workstation with "ps". Apparently however, the calculations for where on the page to crop are appropriate only for the original driver, regardless of which driver is actually used; the two drivers place things on the page differently. <br><br></div>The above environment variable causes "ps" to map to the original driver. It should get you back in business as a work-around. I'll open a ticket on this issue.<br><br></div>Hope that helps...<br></div>Rick<br><div><div><br> <br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 13, 2015 at 11:43 AM, David Brown <span dir="ltr"><<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Rick,<br>
I corresponded with Scott and he sent me some test scripts and data. I<br>
now realize that I forgot to include ncl-talk in my conversation. I<br>
have not had a chance to look at this issue yet, but I hope to soon.<br>
However, if you would like to, since I know you have done some work<br>
with KML, I would be happy to give you what I have. If there is an NCL<br>
issue here it would be good to get to the bottom of it.<br>
-dave<br>
<span class="im HOEnZb"><br>
<br>
On Wed, May 13, 2015 at 9:30 AM, Rick Brownrigg <<a href="mailto:brownrig@ucar.edu">brownrig@ucar.edu</a>> wrote:<br>
</span><div class="HOEnZb"><div class="h5">> Hi Scott,<br>
><br>
> There are no specific plans -- at the moment -- for refined KML<br>
> functionality. That could change depending upon level of interest, and I'll<br>
> take your note as a vote of interest! In general, contributed/external NCL<br>
> routines come with no promise of support by the NCL team, so you might<br>
> contact the authors of these codes. That said, if you have a self-contained<br>
> example of what is not happening as expected with Ryan's approach, I'd be<br>
> happy to take a look -- its odd that things should suddenly no longer work.<br>
><br>
> Rick<br>
><br>
><br>
> On Mon, May 11, 2015 at 2:12 PM, Scott Capps <<a href="mailto:scott@allvertum.com">scott@allvertum.com</a>> wrote:<br>
>><br>
>> Good afternoon,<br>
>><br>
>> I have used NCL to output KML/KMZ files from WRF data using both Ryan<br>
>> Pavlick's and Mohammad Abouali's code. Ryan's solution was working but<br>
>> is no longer working with the latest versions of NCL. For some reason,<br>
>> it cannot extract the labelbar from the plot and no longer maps the plot<br>
>> onto Google-Earth correctly. Using Mohammad's solution, I am able to<br>
>> get a KML/KMZ file that plots OK in Google-Earth. However, I am not<br>
>> given the option to specify a contour spacing value nor can I plot the<br>
>> colorbar within google-earth. So, the end user of the KML really has no<br>
>> idea how the color contours correspond to the actual values contoured.<br>
>> I really need the ability to specify a contour spacing. Therefore, I<br>
>> have two questions:<br>
>><br>
>> Are there plans to refine the KML functionality within NCL in the near<br>
>> future?<br>
>> Who do I ask for support from these contributed and external NCL routines?<br>
>><br>
>> Thank you,<br>
>><br>
>> Scott<br>
>> _______________________________________________<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>
><br>
><br>
> _______________________________________________<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>
</div></div></blockquote></div><br></div>