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. |
Beta Was this translation helpful? Give feedback.
-
Can we instead add the feature to netcdf-c? Would that be difficult? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Yes, that seems appropriate. But does that mean that you do not use libhdf5 at all? |
Beta Was this translation helpful? Give feedback.
-
Sorry, I guess I was too cursory. |
Beta Was this translation helpful? Give feedback.
-
Ward's comment is an appropriate reminder. In the end, perhaps we (Unidata), |
Beta Was this translation helpful? Give feedback.
-
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-c
with 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
_NCProperties
attribute be enough to make that difference?Beta Was this translation helpful? Give feedback.
All reactions