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

Dennis Shea shea at ucar.edu
Tue Nov 13 08:41:29 MST 2018


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> 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 <http://www.eccforum.org>
> www.toni-klemm.de | @toniklemm <http://twitter.com/toniklemm>
>
>
>
>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> 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/20181113/046b7336/attachment.html>


More information about the ncl-talk mailing list