<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Alyssa,<div class=""><br class=""></div><div class="">In the future, please submit new questions as a separate email to <a href="mailto:pyngl-talk@ucar.edu" class="">pyngl-talk@ucar.edu</a>. Asking and answering questions publicly via pyngl-talk has the potential to help other users with similar questions; sometimes other users are even able to respond before any of the developers have an opportunity to do so.</div><div class=""><br class=""></div><div class="">Regarding NCL’s “gsm_csm_contour_map” function, PyNGL actually has a similar function called “contour_map”, which is accessible in Python as “Ngl.contour_map()”. The Examples page of our PyNGL documentation website has several “contours of unstructured data” scripts that may be useful as a reference: <a href="https://www.pyngl.ucar.edu/Examples/gallery.shtml#Contours_of_unstructured_data" class="">https://www.pyngl.ucar.edu/Examples/gallery.shtml#Contours_of_unstructured_data</a></div><div class=""><br class=""></div><div class="">In particular, I have attached a modified version of the camse1.py script that you might be able to use as a starting point. The data file it uses (“MPAS.nc”) can be downloaded from the NCL documentation website: <a href="http://ncl.ucar.edu/Applications/Data/" class="">http://ncl.ucar.edu/Applications/Data/</a></div><div class=""><br class=""></div><div class="">You can substitute “MPAS.nc” in this script with one of your own data files, although you will likely need to update variable names (“surface_pressure”, “latCell”, and “lonCell” in MPAS.nc) to match the contents of your replacement data file.</div><div class=""><br class=""></div><div class="">Kevin</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 28, 2017, at 3:20 PM, Alyssa Stansfield <<a href="mailto:alyssa.stansfield@stonybrook.edu" class="">alyssa.stansfield@stonybrook.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Kevin,<div class=""><br class=""></div><div class="">Another question. Does pyngl have any functions for plotting unstructured data? I have files where the latitude, longitude, and actual data arrays are all one dimensional, and I want to plot this data on a cylindrical equidistant map. I tried using "gsm_csm_contour_map", but pyngl does not seem to contain this function?</div><div class=""><br class=""></div><div class="">-Alyssa</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Sep 28, 2017 at 5:06 PM, Kevin Hallock <span dir="ltr" class=""><<a href="mailto:hallock@ucar.edu" target="_blank" class="">hallock@ucar.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Alyssa,<div class=""><br class=""></div><div class="">Great, I’m glad that fixed it!</div><span class="HOEnZb"><font color="#888888" class=""><div class=""><br class=""></div><div class="">Kevin</div></font></span><div class=""><div class="h5"><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Sep 28, 2017, at 2:27 PM, Alyssa Stansfield <<a href="mailto:alyssa.stansfield@stonybrook.edu" target="_blank" class="">alyssa.stansfield@stonybrook.<wbr class="">edu</a>> wrote:</div><br class="m_-3610928691477946651Apple-interchange-newline"><div class=""><div dir="ltr" class="">Kevin,<div class=""><br class=""></div><div class="">I updated XQuartz and now Ngl does import! Thank you!</div><div class=""><br class=""></div><div class="">-Alyssa</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Sep 28, 2017 at 3:47 PM, Kevin Hallock <span dir="ltr" class=""><<a href="mailto:hallock@ucar.edu" target="_blank" class="">hallock@ucar.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hi Alyssa,<div class=""><br class=""></div><div class="">Could you please check the version of XQuartz that’s installed on your machine? (select “About X11” in the “XQuartz” menu while the XQuartz application is open)</div><div class=""><br class=""></div><div class="">For reference, I currently have XQuartz 2.7.11 installed on my Mac. If your version of XQuartz is lower than 2.7.11, you may need to upgrade it in order for PyNIO and PyNGL to work: <a href="https://www.xquartz.org/" target="_blank" class="">https://www.xquartz.org/</a></div><div class=""><br class=""></div><div class="">I hope this helps!</div><div class="">Kevin<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class=""><div class="m_-3610928691477946651h5"><div class="">On Sep 28, 2017, at 12:47 PM, Alyssa Stansfield <<a href="mailto:alyssa.stansfield@stonybrook.edu" target="_blank" class="">alyssa.stansfield@stonybrook.<wbr class="">edu</a>> wrote:</div><br class="m_-3610928691477946651m_6185635617343456705Apple-interchange-newline"></div></div><div class=""><div class=""><div class="m_-3610928691477946651h5"><div dir="ltr" class="">Hello,<div class=""><br class=""></div><div class="">I tried installing PyNIO and PyNGL using anaconda in a separate environment, as suggested on the website. When I open Python and import NIO, it works, but when I try to import Ngl, this error message comes up:</div><div class=""><br class=""></div><div class=""><p class="m_-3610928691477946651m_6185635617343456705gmail-p1"><span class="m_-3610928691477946651m_6185635617343456705gmail-s1"><span class="m_-3610928691477946651m_6185635617343456705gmail-Apple-converted-space"> </span>File "/Users/Alyssa/anaconda/envs/p<wbr class="">yn_test/lib/python2.7/site-pac<wbr class="">kages/PyNGL/Ngl.py", line 45, in <module></span></p><p class="m_-3610928691477946651m_6185635617343456705gmail-p1"><span class="m_-3610928691477946651m_6185635617343456705gmail-s1"><span class="m_-3610928691477946651m_6185635617343456705gmail-Apple-converted-space"> </span>import fplib</span></p><p class="m_-3610928691477946651m_6185635617343456705gmail-p1"><span class="m_-3610928691477946651m_6185635617343456705gmail-s1">ImportError: dlopen(/Users/Alyssa/anaconda/<wbr class="">envs/pyn_test/lib/python2.7/si<wbr class="">te-packages/PyNGL/fplib.so, 2): Library not loaded: /opt/X11/lib/libcairo.2.dylib</span></p><p class="m_-3610928691477946651m_6185635617343456705gmail-p1"><span class="m_-3610928691477946651m_6185635617343456705gmail-s1"><span class="m_-3610928691477946651m_6185635617343456705gmail-Apple-converted-space"> </span>Referenced from: /Users/Alyssa/anaconda/envs/py<wbr class="">n_test/lib/python2.7/site-pack<wbr class="">ages/PyNGL/fplib.so</span></p><p class="m_-3610928691477946651m_6185635617343456705gmail-p1"><span class="m_-3610928691477946651m_6185635617343456705gmail-s1"><span class="m_-3610928691477946651m_6185635617343456705gmail-Apple-converted-space"> </span>Reason: Incompatible library version: fplib.so requires version 11403.0.0 or later, but libcairo.2.dylib provides version 11203.0.0</span></p><p class="m_-3610928691477946651m_6185635617343456705gmail-p1"><span class="m_-3610928691477946651m_6185635617343456705gmail-s1">I tried updating all my modules using conda, but still I get this error. Any ideas on how to fix this?</span></p><p class="m_-3610928691477946651m_6185635617343456705gmail-p1">-Alyssa</p></div></div></div></div>
______________________________<wbr class="">_________________<br class="">pyngl-talk mailing list<br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="http://mailman.ucar.edu/mailman/listinfo/pyngl-talk" target="_blank" class="">http://mailman.ucar.edu/mailma<wbr class="">n/listinfo/pyngl-talk</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></div>
</div></blockquote></div></div></body></html>