[ncl-talk] NCAR graphic library in Julia language?

Dave Allured - NOAA Affiliate dave.allured at noaa.gov
Thu Jan 30 13:27:20 MST 2020


Franz,

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.

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.

http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclExtend.shtml


On Thu, Jan 30, 2020 at 3:40 AM Francesco Trotta <francesco.trotta4 at unibo.it>
wrote:

> Dear Dave,
>    thanks for the informations!
>    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())
>
>    I still have to try to import the PyNGL library but I will try it!
>
>    I know that in julia you can import other library build in other
> language
>    (for example my colleague use the python visualization PyPlot and
> Seaborn library)
>
>    I'm not expert but perhaps you need a wrapper to use an external
> library ...
>
> thanks
>
> Francesco
>
> ------------------------------
> *Inviato:* mercoledì 29 gennaio 2020 19:46
> *A:* Francesco Trotta <francesco.trotta4 at unibo.it>
>
> Oops.  I meant to say, "This would also depend on whether the *NCAR
> Graphics* runtime system is compatible with the Julia runtime system."
>
> Also you might consider calling *PyNGL*, the NCAR Graphics Python
> interface, directly from Julia.  One again, there would be runtime
> compatibility concerns.  These may be uncharted waters.
>
>
> On Wed, Jan 29, 2020 at 11:37 AM Dave Allured - NOAA Affiliate <
> dave.allured at noaa.gov> wrote:
>
> Ah.  Here we go.  The Julia home page, https://julialang.org, says "...
> you can easily use libraries from Python, R, C/Fortran, C++, and Java."
>
> 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.
>
>
> On Tue, Jan 28, 2020 at 10:53 AM Dave Allured - NOAA Affiliate <
> dave.allured at noaa.gov> wrote:
>
> Franz, NCAR Graphics has C and fortran interfaces.  But I do not know
> anything about Julia.  Are any of these options possible?
>
> * Julia calls C.
> * Julia calls fortran.
> * Julia calls a command shell, like NCL's systemfunc().
>
>
> On Tue, Jan 28, 2020 at 6:46 AM Dennis Shea via ncl-talk <
> ncl-talk at ucar.edu> wrote:
>
> Not that I know.
>
>
> On Jan 28, 2020, at 4:12 AM, Francesco Trotta via ncl-talk <
> ncl-talk at ucar.edu> wrote:
> 
>
> Dear NCL-users
>    I'm working with a code written in Julia program language
>    Is there a way to import and use the NCAR graphic library in Julia
> language?
>
> Best
> Franz
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200130/ced7637f/attachment.html>


More information about the ncl-talk mailing list