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

Francesco Trotta francesco.trotta4 at unibo.it
Thu Jan 30 03:40:18 MST 2020


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

________________________________
Da: Dave Allured - NOAA Affiliate <dave.allured at noaa.gov>
Inviato: mercoledì 29 gennaio 2020 19:46
A: Francesco Trotta <francesco.trotta4 at unibo.it>
Cc: ncl-talk at ucar.edu <ncl-talk at ucar.edu>
Oggetto: Re: [ncl-talk] NCAR graphic library in Julia language?

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<mailto: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<mailto: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<mailto: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<mailto: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/8eba2d84/attachment.html>


More information about the ncl-talk mailing list