Members
attributes :Array
Array containing the names of all attributes of this object.
Type:
- Array
Methods
children() → {Array}
Returns:
Names of the children of this group.
- Type
- Array
close()
Returns:
Closes the group handle. Any subsequent method invocations on this group or its children are considered invalid.
createDataSet(name, type, shape, optionsopt) → {H5DataSet}
Parameters:
Name | Type | Attributes | Default | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name |
string | Name of the dataset to create. |
|||||||||||||||||
type |
string | object | Type of dataset to create.
This can be |
|||||||||||||||||
shape |
Array | Array containing the dimensions of the dataset to create. This can be set to an empty array to create a scalar dataset. |
|||||||||||||||||
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|
Returns:
A dataset of the specified type and shape is created as an immediate child of the current group. A H5DataSet object is returned representing this new dataset.
- Type
- H5DataSet
createGroup(name)
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Name of the group to create. |
Returns:
{@H5Group} A group is created as an immediate child of the current group.
A H5Group object is returned representing this new group.
If a group already exists at name
, it is returned directly.
open(name) → {H5Group|H5DataSet}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Name of the child element to open. |
Returns:
Object representing the child element.
readAttribute(attr) → {object}
Parameters:
Name | Type | Description |
---|---|---|
attr |
string | Name of the attribute. |
Returns:
Object containing:
values
, an Array or TypedArray containing the attribute data. This should have length equal to the product ofshape
for non-scalar attributes.shape
, an Array containing the dimensions of the attribute. This is empty for scalar attributes, in which casevalues
will have length 1.
- Type
- object
writeAttribute(attr, type, shapenullable, x, optionsopt)
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
attr |
string | Name of the attribute. |
||||||||||||
type |
string | Type of attribute to create.
This can be |
||||||||||||
shape |
Array |
<nullable> |
Array containing the dimensions of the attribute to create. If set to an empty array, this will create a scalar dataset. |
|||||||||||
x |
TypedArray | Array | Values to be written to the new attribute.
This should be of length equal to the product of |
||||||||||||
options |
object |
<optional> |
{}
|
Optional parameters. Properties
|