[ncl-talk] Including "string" variable in new NetCDF file

Toni Klemm toni-klemm at tamu.edu
Tue Nov 13 09:54:11 MST 2018


Thanks, Dennis! That’s good to know.

Toni


Toni Klemm, Ph.D.
Postdoctoral Research Associate
Department of Ecosystem Science and Management
College of Agriculture and Life Sciences
Texas A&M University, College Station, TX
Contributor to the Early Career Climate Forum <http://www.eccforum.org/>
www.toni-klemm.de <http://www.toni-klemm.de/> | @toniklemm <http://twitter.com/toniklemm>








> On Nov 13, 2018, at 9:41 AM, Dennis Shea <shea at ucar.edu> wrote:
> 
> No. To my knowledge, users need not do anything different.
> 
> natCDF-3 supported characters only.
> 
> netCDF-4 (==> HDF-5) supports both character and string types.
> 
> --
> 
> 
> On Mon, Nov 12, 2018 at 3:42 PM Toni Klemm <toni-klemm at tamu.edu <mailto:toni-klemm at tamu.edu>> wrote:
> Hello!
> 
> I need to include a string variable (names of counties of several US states) in a new netCDF file, and my understanding is that the setfileoption for the file cannot be set to 
> 
> setfileoption("nc","Format”,"LargeFile")
> but must be set to
> 
> setfileoption("nc","Format","NetCDF4")
> for so that string variables can be saved in the NetCDF file. The rest of the file contains regular numeric data (integer values with a defined missing value and some metadata), all of which I converted from a .csv file. I’ve never changed this file option before, and I was wondering if there is something I need to be aware of when processing and working with the rest of the file (doing simple math like averages, sums, …). 
> 
> Thank you very much in advance.
> 
> Toni
> 
> 
> Toni Klemm, Ph.D.
> Postdoctoral Research Associate
> Department of Ecosystem Science and Management
> College of Agriculture and Life Sciences
> Texas A&M University, College Station, TX
> Contributor to the Early Career Climate Forum <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.eccforum.org&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=TdOTrPi62aR6-ZRj6VnwNN6rsfRCPMmi4XPhGsEUlFM&s=T2C-qLCrdUBf5J42akMzOO_G-qk2QT2Ii0K5ooZ7uCQ&e=>
> www.toni-klemm.de <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toni-2Dklemm.de&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=TdOTrPi62aR6-ZRj6VnwNN6rsfRCPMmi4XPhGsEUlFM&s=0MR6UPe3UIPpPnITH1mYbxQ1hOVXXVysEc-h5AY-Fs0&e=> | @toniklemm <https://urldefense.proofpoint.com/v2/url?u=http-3A__twitter.com_toniklemm&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=TdOTrPi62aR6-ZRj6VnwNN6rsfRCPMmi4XPhGsEUlFM&s=W6mPX2T_ePiee1gGLJ_cJvBabx8kg_5BkZQfjKMcNSY&e=>
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk <https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.ucar.edu_mailman_listinfo_ncl-2Dtalk&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=TdOTrPi62aR6-ZRj6VnwNN6rsfRCPMmi4XPhGsEUlFM&s=atjoNsll0Jv2RRuHIjBcYs9pHVd-cv4kSu0fbgaj-TI&e=>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181113/34fb0c72/attachment.html>


More information about the ncl-talk mailing list