Revert "open HDF5 read-only"

This reverts commit f8ef18f855621a425a11442e5aca0b5d89540c9b.