<< h5rm HDF5 files h5write >>

Scilab Help >> HDF5 files > h5umount

h5umount

マウントされたファイルのマウント解除する.

呼び出し手順

h5umount(obj, location)

Arguments

obj

a H5Object

location

マウントポイントを指定する文字列

説明

マウントされたファイルのマウントを解除します.

// HDF5ファイルを作成
a = h5open(TMPDIR + "/test.h5", "w")
// マウントポイントとして使用するグループを作成
h5group(a, "/mnt");
// グループとデータセットを有する他のファイルを作成
b = h5open(TMPDIR + "/test1.h5", "w")
h5group(b, "Group_1");
h5write(b, "Group_1/Dataset_1", [1 2;3 4]);
// b を a にマウント
h5mount(a, "/mnt", b)
// aと同等にbを修正または読み込み可能
a.root.mnt.Group_1.Dataset_1.data
h5write(a.root.mnt.Group_1, "Dataset_1", [10 11;12 13])
// マウントを解除し, マウントポイントを削除できる
h5umount(a, "/mnt")
h5rm(a, "/mnt")
// 全て閉じる
h5close(a, b)
// b の修正がokかどうか確認
h5dump(TMPDIR + "/test1.h5", "/Group_1/Dataset_1")

参照

履歴

VersionDescription
5.5.0 HDF5モジュールが導入されました.

Report an issue
<< h5rm HDF5 files h5write >>