[ncl-talk] enstrophy - triple integral
Kyle Griffin
ksgriffin2 at wisc.edu
Thu Mar 19 11:45:33 MDT 2015
If you have code to do it with fortran, I would suggest using that code.
NCL loses the most speed when performing calculations within nested loops,
and will likely prove to be much slower than fortran for a given task.
Since the "how" of performing an integral varies greatly depending on the
data format, I don't believe there are any pre-built generic NCL solutions.
However, you may gain some insight if you can find the code for the
atmospheric angular momentum function, angmom_atm, in which the
documentation states a triple integral is calculated. Not having a copy of
the source code handy, I can't provide you with that code, but you could
find it yourself if you download the source code or have a developer send
you a copy of the code.
https://www.ncl.ucar.edu/Document/Functions/Built-in/angmom_atm.shtml
Good luck!
Kyle
----------------------------------------
Kyle S. Griffin
Department of Atmospheric and Oceanic Sciences
University of Wisconsin - Madison
Room 1421
1225 W Dayton St, Madison, WI 53706
Email: ksgriffin2 at wisc.edu
On Thu, Mar 19, 2015 at 11:55 AM, Erika Folova <e.folova at gmail.com> wrote:
> Hello ncl users,
>
> Anyone can suggest me a tip how to compute triple integral efficiently
> using ncl?
> is there any example? In my case, I need to compute the enstrophy.. I have
> a fortran code but Im just wondering if I can do this also in ncl.
>
> Cheers,
> Folova
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150319/38d2f4e1/attachment.html
More information about the ncl-talk
mailing list