Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.0 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Scilabヘルプ >> HDF5 Management > h5mount

h5mount

グループにファイルをマウントする

呼び出し手順

h5mount(obj, location, fileobj)

引数

obj

H5Object

location

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

fileobj

H5Object

説明

マウントポイントにHDF5ファイルをマウントします.

// 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]);

// aにbをマウント
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")

参照

  • h5open — HDF5ファイルをオープン
  • h5umount — マウントされたファイルのマウント解除する.

履歴

バージョン記述
5.5.0 HDF5モジュールが導入されました.
Report an issue
<< h5ls HDF5 Management h5mv >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Fri Apr 11 14:18:58 CEST 2014