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
netcdf string variables unable to be read #78
Comments
@doutriaux1 @sashakames @dnadeau4 FYI as the publisher starts receiving more and more data to publish on the new projects, obs4MIPs, input4MIPs etc the requirement to support ALL netcdf4 types is going to be a major requirement.. I really do think #63 and #65 along with their dupes CDAT/cdat#537, CDAT/cdat#481 should be way up on top of the priority list of |
i did it for attributes, but Sasha now has a file with |
@doutriaux1 this issue is preventing the ESGF publisher from working with one of the contributed input4MIPs files. @sashakames was planning to "hack" the publisher for this file, but I really think addressing the underlying problem should be a very high priority. As noted in CDAT/cdat#537 (#63) and CDAT/cdat#481 (#65) |
@durack1 Why are your input4MIPs files so "messy"? the NC_STRING is not the "classic format" for netCDF4 which means that it is not compatible with the netCDF3 format. |
@dnadeau4 many of the input4MIPs datasets are.. this file (string variable) was written using netcdf4 for python. For many files I've rewritten them, this |
@dnadeau4 while I do think maintaining backward compatibility would be a nice feature, in my opinion netcdf3 is "dead" as the last bug-fix release (3.6.3) was in 2008 (almost 10 years ago!), and netcdf4.0 was released in 2009. This means that full netcdf4 support is the priority, and only if it comes for free (and doesn't bog down progress in full netcdf4 support) should the netcdf3 support be maintained - if it gets in the way, then surge ahead to netcdf4. @doutriaux1 do you want to chime in here? |
@dnadeau4 is the incompatibility preventing us to read via cdunif? One thing we should look into is to remove cdunif all together when it comes to netcdf and use pynetcdf4 that would save us a lot of troubles, the cdunif espcially for writing is causing us grief. I still sudpect it's the reason my mpi implentation failed to many mode switches. |
@doutriaux1 @dnadeau4 https://github.com/Unidata/netcdf4-python is the Unidata supported interface, so if we're using their C libraries may as well also use their python libraries |
@doutriaux1 @dnadeau4 do either of you have an idea what the difference is between https://anaconda.org/anaconda/netcdf4/ (latest version 1.2.4) and https://github.com/Unidata/netcdf4-python (latest version 1.2.7rel)? |
myguess is that the
|
@durack1 there is now way to actually use MPI with netcdf4-python. This is a strength of CDMS that we can use mpi4py and enable MPI I/O. Something that we cannot find in other python package. |
@dnadeau4 ok, dangling the carrot of MPI I/O to be included in |
@dnadeau4 why not mpi with pynetcdf4? As long as your netcdf is compiled against MPI it shouldn't matter. |
@doutriaux1 pynetcdf4 does not exist and I am sure it does not support MPI I/O. |
@dnadeau4 this issue doesn't appear to be fixed, so reopening. Did you need me to upload the file here again? It's 1.8Mb |
@dnadeau4 has a solution for this issue been implemented? I'd be keen to test |
@dnadeau4 FYI, there's another issue that is occurring with the rewritten data:
stringVariableNoRead.zip
The
string
variables are unable to be read:The text was updated successfully, but these errors were encountered: