<div dir="ltr"><div dir="ltr"><div>Franz,</div><div><br></div><div>Originally you asked about calling NCAR Graphics.  NCL is a different system that uses NCAR Graphics internally.  The only way to call NCL right now is through a shell function like "run" which you said you are using.  You might be able to improve efficiency by using environment variables to pass data.</div><div><br></div><div>It would be good to have a direct interface to call NCL from other languages, so that you can efficiently send and receive data.  Currently there is no such NCL interface for any language.  However, an NCL main program can call C and fortran routines by using a wrapper facility.  This is not of much help for calling NCL from Julia.</div><div><br></div><div><a href="http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclExtend.shtml">http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclExtend.shtml</a> </div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 30, 2020 at 3:40 AM Francesco Trotta <<a href="mailto:francesco.trotta4@unibo.it">francesco.trotta4@unibo.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<span>Dear Dave,<br>
</span>
<div>   thanks for the informations!<br>
</div>
<div>   Up to now in my julia program for some tasks (like represent vector fields, ...) I'm calling ncl scripts from julia with the 'run' function (command for Running External Programs similar to NCL's systemfunc())<br>
</div>
<div><br>
</div>
<div>   I still have to try to import the PyNGL library but I will try it!<br>
</div>
<div><br>
</div>
<div>   I know that in julia you can import other library build in other language<br>
</div>
<div>   (for example my colleague use the python visualization PyPlot and Seaborn library)<br>
</div>
<div> <br>
</div>
<div>   I'm not expert but perhaps you need a wrapper to use an external library ...<br>
</div>
<div><br>
</div>
<div>thanks<br>
</div>
<div><br>
</div>
<span>Francesco</span>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div id="gmail-m_-2664574803155958927appendonsend"></div>
<hr style="display:inline-block;width:98%"><div id="gmail-m_-2664574803155958927divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000">
<b>Inviato:</b> mercoledì 29 gennaio 2020 19:46<br>
<b>A:</b> Francesco Trotta <<a href="mailto:francesco.trotta4@unibo.it" target="_blank">francesco.trotta4@unibo.it</a>><br></font><div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Oops.  I meant to say, "This would also depend on whether the <b>NCAR Graphics</b> runtime system is compatible with the Julia runtime system."</div>
<div dir="ltr"><br>
</div>
Also you might consider calling <b>PyNGL</b>, the NCAR Graphics Python interface, directly from Julia.  One again, there would be runtime compatibility concerns.  These may be uncharted waters.
<div><br>
</div>
</div>
<br>
<div>
<div dir="ltr">On Wed, Jan 29, 2020 at 11:37 AM Dave Allured - NOAA Affiliate <<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Ah.  Here we go.  The Julia home page, <a href="https://julialang.org" target="_blank">https://julialang.org</a>, says "... you can easily use libraries from Python, R, C/Fortran, C++, and Java."</div>
<div dir="ltr"><br>
</div>
<div>So theoretically you should be able to use either the C or Fortran interface to NCAR Graphics, or even mix them.  This would also depend on whether the NCL runtime system is compatible with the Julia runtime system.  This would be worth testing.  If you
 try anything like this, let us know what happens.  Thanks.</div>
<div dir="ltr"><br>
</div>
<br>
<div>
<div dir="ltr">On Tue, Jan 28, 2020 at 10:53 AM Dave Allured - NOAA Affiliate <<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div dir="ltr">Franz, NCAR Graphics has C and fortran interfaces.  But I do not know anything about Julia.  Are any of these options possible?</div>
<div dir="ltr">
<div><br>
</div>
<div>* Julia calls C.</div>
<div>* Julia calls fortran.</div>
<div>* Julia calls a command shell, like NCL's systemfunc().</div>
<div><br>
</div>
<br>
<div>
<div dir="ltr">On Tue, Jan 28, 2020 at 6:46 AM Dennis Shea via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="auto">Not that I know. <br>
<br>
<div dir="ltr"><br>
<blockquote type="cite">On Jan 28, 2020, at 4:12 AM, Francesco Trotta via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span>Dear NCL-users<br>
</span>
<div>   I'm working with a code written in Julia program language<br>
</div>
<div>   Is there a way to import and use the NCAR graphic library in Julia language?<br>
</div>
<div><br>
</div>
<div>Best<br>
</div>
<span>Franz</span></div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>

</blockquote></div></div></div>