[ncl-talk] NCL-to-Python examples
Carl Schreck
cjschrec at ncsu.edu
Wed Feb 13 12:16:27 MST 2019
I've starting reading more closely through some of the transition-to-python
documentation (specifically the "*NCL-to-Python Transition Guide*
<http://www.ncl.ucar.edu/Document/Manuals/NCL_to_Python/Transition_Guide_NCL_PyNGL.pdf>"
and the *suite of NCL and Python examples
<http://www.ncl.ucar.edu/Applications/NCL_to_Python>).*
First off, these are already excellent resources, and I know they just
preliminary works-in-progress at this stage. They have already answered
many of my questions as to how to replicate my NCL workflow in python.
I am wondering if the NCL team has a formal way to track feature requests
for things that either need to be in these guides and/or put into the
future TBD python package.
I know Barry Lynn had a list of such items in the previous thread:
> 1) the calendar functions, inverse and regular.
> 2) The ability to subset strings and obtain dates for example from the
> strings.
> 3) The ability to use attributes to obtain times (e.g., from the GFS data).
> 4) The ability to call shell commands from within NCL.
> 5) The ability to parse variables in a list, e.g., CSV files read as
> single lines and then parsed into separate variables.
> 6) The ability to "WRAPIT" Fortran programs.
> 7) The ability to subset arrays and conform them.
My impression is that python already natively does 2-7, possibly more
easily than NCL (I always thought NCL was a little clunky with strings and
csv).
However, I would certainly like to see examples for equivalents of
cd_calendar, cd_inv_calendar, cd_string, cd_convert, and time_axis_labels.
I'm sure they exist, I just don't see them yet in the current documents
from NCL.
Thanks!
Carl
--
<https://ncics.org/> *Carl J. Schreck III, PhD*
*Research Scholar*
North Carolina State University <http://ncsu.edu/>
North Carolina Institute for Climate Studies (NCICS) <https://ncics.org/>
151 Patton Ave, Asheville, NC 28801
e: cjschrec at ncsu.edu
o: +1 828 257 3140 <(828)%20257-3140>
c: +1 828 484 1702 <(828)%20484-1702>
Publications
<http://scholar.google.com/citations?hl=en&user=th8ONEcAAAAJ&view_op=list_works&sortby=pubdate>
ncics.org/mjo
CycloneCenter.org <https://www.cyclonecenter.org/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190213/c102617f/attachment.html>
More information about the ncl-talk
mailing list