Creating an .h5 file and accessing an existing file
The following functions are provided to create new or access existing .h5 files
- int dm_h5_create(char *filename, hid_t *ptr_h5_file_id, char *error_string)
As its name suggests this function will create a new .h5 file at the location specified
with *filename. It will return either DM_FILEIO_SUCCESS or
DM_FILEIO_FAILURE.
- int dm_h5_openwrite(char *filename, hid_t *ptr_h5_file_id, char *error_string)
This function will open an existing .h5 file specified by *filename with
write access. Use this if you wish to modify the contents of the file. It will return either
DM_FILEIO_SUCCESS or DM_FILEIO_FAILURE.
- int dm_h5_openread(char *filename, hid_t *ptr_h5_file_id, char *error_string)
This function will open an existing .h5 file specified by *filename with
read-only access. Use this if you just wish to examine the contents of the file. It will return
either DM_FILEIO_SUCCESS or DM_FILEIO_FAILURE.
After you're done with the file you should release its identifier by calling
void dm_h5_close(hid_t h5_file_id).
Microscope User
2008-04-30