Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: fixed length string data type #28

Closed
jswhit opened this issue Mar 7, 2014 · 1 comment
Closed

feature request: fixed length string data type #28

jswhit opened this issue Mar 7, 2014 · 1 comment

Comments

@jswhit
Copy link

jswhit commented Mar 7, 2014

The old way of strong fixed length strings in netcdf3 (using a multidimensional character array, with an extra dimension for string length) is clunky. The new way in netcdf4 (vlen strings) does not map very well on python and fortran data types. The easiest way to deal with strings in numpy and fortran is with arrays of fixed-length strings (e.g. for 10 character strings you would use the numpy dtype 'S10' and in fortran you would use character(len=10)). HDF5 does support a fixed-length string data type (H5T_STRING).

I know this has been discussed many times before, but I keep getting requests from python users for this so I though I would bring it up again (now that we have this nice github interface to keep track of the discussion).

@WardF
Copy link
Member

WardF commented Mar 17, 2014

Moved feature request into the wiki: https://github.com/Unidata/netcdf-c/wiki/Requested-Features

@WardF WardF closed this as completed Mar 17, 2014
edhartnett added a commit to NetCDF-World-Domination-Council/netcdf-c that referenced this issue Mar 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants