Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.1 - Français

Change language to:
English - 日本語 - Português - Русский

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

Aide de Scilab >> HDF5 Management > h5mount

h5mount

Mount a file on a group

Syntax

h5mount(obj, location, fileobj)

Arguments

obj

a H5Object

location

a string giving the mount point

fileobj

a H5Object

Description

Mount an HDF5 file on a mount point.

Examples

// Create an HDF5 file
a = h5open(TMPDIR + "/test.h5", "w")

// we create a group which will be used as mount point
h5group(a, "/mnt");

// Create an other file with a group and a dataset
b = h5open(TMPDIR + "/test1.h5", "w")
h5group(b, "Group_1");
h5write(b, "Group_1/Dataset_1", [1 2;3 4]);

// Mount b on a
h5mount(a, "/mnt", b)

// Now we can modify or read b like if we were in a
a.root.mnt.Group_1.Dataset_1.data
h5write(a.root.mnt.Group_1, "Dataset_1", [10 11;12 13])

// We can now unmount and remove the mount point
h5umount(a, "/mnt")
h5rm(a, "/mnt")

// We close all
h5close(a, b)

// Check that the modification in b is ok
h5dump(TMPDIR + "/test1.h5", "/Group_1/Dataset_1")

See also

  • h5umount — Unmount a previously mounted file.

History

VersionDescription
5.5.0 HDF5 module introduced.
Report an issue
<< h5ls HDF5 Management h5mv >>

Copyright (c) 2022-2024 (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:
Mon Feb 12 19:15:31 CET 2018