How does netcdf-c recognize netCDF4 format #2258
Replies: 6 comments 11 replies
|
Reading HDF5 files, in all their glory, is a core feature of netCDF-4. So you should not attempt to mark a HDF5 file as unreadable to netCDF-4. Instead, we should change netCDF-4 to read the file. And that has happened many times. So not all HDF5 files can be read by netCDF at this time, but the feature needed to read the file might be added. Therefore it's not safe to say that a HDF5 file cannot be read by netCDF. |
|
Can we instead add the feature to netcdf-c? Would that be difficult? |
|
Removing _NCProperties is not enough since there are old netcdf-4 files out there that predate The question is somewhat ill-posed. In some sense, if the file is readable by libnetcdf, then it As an aside, I would encourage the h5netcdf group to start putting its library info in any _NCProperties |
|
Yes, that seems appropriate. But does that mean that you do not use libhdf5 at all? |
|
Sorry, I guess I was too cursory. |
|
Ward's comment is an appropriate reminder. In the end, perhaps we (Unidata), |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This may be a stupid question, but the documentation on the format didn't bring me further.
In light of What is netCDF I'm interested in what makes an HDF5-file a netCDF4 file?
Obviously every file which is created via
netcdf-c(using netCDF4 format) is a netCDF4 file. But how does this apply to other ways of creating, like those packages mentioned in the above link (eg.h5netcdf).Consider adding/changing a valid netCDF4-file (created with
netcdf-c) by other packages side-steppingnetcdf-cwith unsupported HDF5 features (eg. multiple links to a data object). What changes are needed to the original netCDF4-file to make it unmistakably clear, that the altered file is not a netCDF4 compliant file any more, even if it might still be readable vianetcdf-c?Will removal of the
_NCPropertiesattribute be enough to make that difference?All reactions