2000-05-18 23:14:53 +08:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
1998-07-15 03:00:46 +08:00
|
|
|
<html>
|
|
|
|
<head>
|
2000-05-18 23:14:53 +08:00
|
|
|
<title>DDL for HDF5</title>
|
2003-03-15 03:12:34 +08:00
|
|
|
|
2003-07-03 05:28:11 +08:00
|
|
|
<!-- #BeginLibraryItem "/ed_libs/styles_UG.lbi" -->
|
|
|
|
<!--
|
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
|
|
* Copyright by the Board of Trustees of the University of Illinois. *
|
|
|
|
* All rights reserved. *
|
|
|
|
* *
|
|
|
|
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
|
|
|
* terms governing use, modification, and redistribution, is contained in *
|
|
|
|
* the files COPYING and Copyright.html. COPYING can be found at the root *
|
|
|
|
* of the source code distribution tree; Copyright.html can be found at the *
|
|
|
|
* root level of an installed copy of the electronic HDF5 document set and *
|
|
|
|
* is linked from the top-level documents page. It can also be found at *
|
|
|
|
* http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have *
|
|
|
|
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
|
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
|
|
-->
|
|
|
|
|
|
|
|
<link href="ed_styles/UGelect.css" rel="stylesheet" type="text/css">
|
2003-03-15 03:12:34 +08:00
|
|
|
<!-- #EndLibraryItem --></head>
|
2000-05-18 23:14:53 +08:00
|
|
|
|
1998-12-22 06:52:56 +08:00
|
|
|
<body bgcolor="#FFFFFF">
|
|
|
|
|
2003-03-15 03:12:34 +08:00
|
|
|
|
|
|
|
<!-- #BeginLibraryItem "/ed_libs/NavBar_UG.lbi" --><hr>
|
2000-05-18 23:14:53 +08:00
|
|
|
<center>
|
|
|
|
<table border=0 width=98%>
|
|
|
|
<tr><td valign=top align=left>
|
2003-03-15 03:12:34 +08:00
|
|
|
<a href="index.html">HDF5 documents and links</a> <br>
|
|
|
|
<a href="H5.intro.html">Introduction to HDF5</a> <br>
|
|
|
|
<a href="RM_H5Front.html">HDF5 Reference Manual</a> <br>
|
2003-07-04 03:40:03 +08:00
|
|
|
<a href="http://hdf.ncsa.uiuc.edu/HDF5/doc/UG/index.html">HDF5 User's Guide for Release 1.6</a> <br>
|
2003-03-15 03:12:34 +08:00
|
|
|
<!--
|
|
|
|
<a href="Glossary.html">Glossary</a><br>
|
|
|
|
-->
|
2000-05-18 23:14:53 +08:00
|
|
|
</td>
|
|
|
|
<td valign=top align=right>
|
2003-03-15 03:12:34 +08:00
|
|
|
And in this document, the
|
2003-07-04 03:40:03 +08:00
|
|
|
<a href="H5.user.html"><strong>HDF5 User's Guide from Release 1.4.5:</strong></a>
|
2003-03-15 03:12:34 +08:00
|
|
|
<br>
|
|
|
|
<a href="Files.html">Files</a>
|
|
|
|
<a href="Datasets.html">Datasets</a>
|
|
|
|
<a href="Datatypes.html">Datatypes</a>
|
|
|
|
<a href="Dataspaces.html">Dataspaces</a>
|
|
|
|
<a href="Groups.html">Groups</a>
|
|
|
|
<br>
|
|
|
|
<a href="References.html">References</a>
|
|
|
|
<a href="Attributes.html">Attributes</a>
|
|
|
|
<a href="Properties.html">Property Lists</a>
|
|
|
|
<a href="Errors.html">Error Handling</a>
|
|
|
|
<br>
|
|
|
|
<a href="Filters.html">Filters</a>
|
|
|
|
<a href="Caching.html">Caching</a>
|
|
|
|
<a href="Chunking.html">Chunking</a>
|
|
|
|
<a href="MountingFiles.html">Mounting Files</a>
|
|
|
|
<br>
|
|
|
|
<a href="Performance.html">Performance</a>
|
|
|
|
<a href="Debugging.html">Debugging</a>
|
|
|
|
<a href="Environment.html">Environment</a>
|
|
|
|
<a href="ddl.html">DDL</a>
|
2000-05-18 23:14:53 +08:00
|
|
|
</td></tr>
|
|
|
|
</table>
|
|
|
|
</center>
|
2000-05-10 00:59:46 +08:00
|
|
|
<hr>
|
2003-03-15 03:12:34 +08:00
|
|
|
<!-- #EndLibraryItem --><h1>DDL in BNF for HDF5</h1>
|
2000-05-18 23:14:53 +08:00
|
|
|
|
|
|
|
|
|
|
|
<h2>1. Introduction</h2>
|
|
|
|
|
|
|
|
This document contains the data description language (DDL) for an HDF5 file.
|
|
|
|
The description is in Backus-Naur Form.
|
|
|
|
|
|
|
|
<h2>2. Explanation of Symbols</h2>
|
|
|
|
|
1998-10-30 09:09:28 +08:00
|
|
|
This section contains a brief explanation of the symbols used in the DDL.
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<PRE>
|
|
|
|
::= defined as
|
|
|
|
<tname> a token with the name tname
|
|
|
|
<a> | <b> one of <a> or <b>
|
|
|
|
<a><FONT SIZE=1.7>opt</FONT> zero or one occurrence of <a>
|
|
|
|
<a>* zero or more occurrence of <a>
|
|
|
|
<a>+ one or more occurrence of <a>
|
2000-12-12 02:49:53 +08:00
|
|
|
[0-9] an element in the range between 0 and 9
|
|
|
|
`[' the token within the quotes (used for special characters)
|
2000-05-18 23:14:53 +08:00
|
|
|
TBD To Be Decided
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
<h2>3. The DDL</h2>
|
1998-07-15 03:00:46 +08:00
|
|
|
|
1998-10-30 09:09:28 +08:00
|
|
|
<dir>
|
2000-05-18 23:14:53 +08:00
|
|
|
<pre>
|
|
|
|
<file> ::= HDF5 <file_name> { <file_super_block><FONT SIZE=1.7>opt</FONT> <root_group> }
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<file_name> ::= <identifier>
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<file_super_block> ::= BOOT_BLOCK { <super_block_content> }
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<super_block_content> ::= TBD
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2002-01-06 00:33:50 +08:00
|
|
|
<root_group> ::= GROUP "/" {
|
|
|
|
<unamed_datatype>*
|
|
|
|
<object_id><FONT SIZE=1.7>opt</FONT>
|
|
|
|
<group_comment><FONT SIZE=1.7>opt</FONT>
|
|
|
|
<group_attribute>*
|
|
|
|
<group_member>*
|
|
|
|
}
|
1998-10-30 09:09:28 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<datatype> ::= <atomic_type> | <compound_type> | <variable_length_type> | <array_type>
|
1998-10-30 09:09:28 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<unamed_datatype> ::= DATATYPE <unamed_type_name> { <datatype> }
|
1998-08-28 05:44:08 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<unamed_type_name> ::= the assigned name for unamed type is in the form of
|
2003-08-09 03:53:16 +08:00
|
|
|
#oid, where oid is the object id of the type
|
2000-12-12 02:49:53 +08:00
|
|
|
|
|
|
|
<atomic_type> ::= <integer> | <float> | <time> | <string> |
|
|
|
|
<bitfield> | <opaque> | <reference> | <enum>
|
|
|
|
|
|
|
|
<integer> ::= H5T_STD_I8BE | H5T_STD_I8LE |
|
|
|
|
H5T_STD_I16BE | H5T_STD_I16LE |
|
|
|
|
H5T_STD_I32BE | H5T_STD_I32LE |
|
|
|
|
H5T_STD_I64BE | H5T_STD_I64LE |
|
|
|
|
H5T_STD_U8BE | H5T_STD_U8LE |
|
|
|
|
H5T_STD_U16BE | H5T_STD_U16LE |
|
|
|
|
H5T_STD_U32BE | H5T_STD_U32LE |
|
|
|
|
H5T_STD_U64BE | H5T_STD_U64LE |
|
|
|
|
H5T_NATIVE_CHAR | H5T_NATIVE_UCHAR |
|
|
|
|
H5T_NATIVE_SHORT | H5T_NATIVE_USHORT |
|
|
|
|
H5T_NATIVE_INT | H5T_NATIVE_UINT |
|
|
|
|
H5T_NATIVE_LONG | H5T_NATIVE_ULONG |
|
|
|
|
H5T_NATIVE_LLONG | H5T_NATIVE_ULLONG
|
|
|
|
|
|
|
|
<float> ::= H5T_IEEE_F32BE | H5T_IEEE_F32LE |
|
|
|
|
H5T_IEEE_F64BE | H5T_IEEE_F64LE |
|
|
|
|
H5T_NATIVE_FLOAT | H5T_NATIVE_DOUBLE |
|
2000-11-22 03:31:19 +08:00
|
|
|
H5T_NATIVE_LDOUBLE
|
1998-12-22 06:54:16 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<time> ::= TBD
|
1998-12-22 06:54:16 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<string> ::= H5T_STRING { STRSIZE <strsize> ;
|
2000-05-18 23:14:53 +08:00
|
|
|
STRPAD <strpad> ;
|
|
|
|
CSET <cset> ;
|
|
|
|
CTYPE <ctype> ; }
|
1998-12-22 06:54:16 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<strsize> ::= <int_value>
|
1998-12-22 06:54:16 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<strpad> ::= H5T_STR_NULLTERM | H5T_STR_NULLPAD | H5T_STR_SPACEPAD
|
1998-12-22 06:54:16 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<cset> ::= H5T_CSET_ASCII
|
1998-12-22 06:54:16 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<ctype> ::= H5T_C_S1 | H5T_FORTRAN_S1
|
1998-12-22 06:54:16 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<bitfield> ::= TBD
|
1998-12-22 06:54:16 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<opaque> ::= H5T_OPAQUE { <identifier> }
|
|
|
|
|
|
|
|
<reference> ::= H5T_REFERENCE { <ref_type> }
|
|
|
|
|
|
|
|
<ref_type> ::= H5T_STD_REF_OBJECT | H5T_STD_REF_DSETREG
|
|
|
|
|
|
|
|
<compound_type> ::= H5T_COMPOUND { <member_type_def>+ }
|
1998-10-30 09:09:28 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<member_type_def> ::= <datatype> <field_name> ;
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<field_name> ::= <identifier>
|
1998-10-30 09:09:28 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<variable_length_type> ::= H5T_VLEN { <datatype> }
|
1998-10-30 09:09:28 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<array_type> ::= H5T_ARRAY { <dim_sizes> <datatype> }
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<dim_sizes> ::= `['<dimsize>`]' | `['<dimsize>`]'<dim_sizes>
|
|
|
|
|
|
|
|
<dimsize> ::= <int_value>
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<attribute> ::= ATTRIBUTE <attr_name> { <dataset_type>
|
|
|
|
<dataset_space>
|
2000-05-18 23:14:53 +08:00
|
|
|
<data><FONT SIZE=1.7>opt</FONT> }
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-10-10 04:44:55 +08:00
|
|
|
<attr_name> ::= <identifier>
|
1998-12-22 06:54:16 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<dataset_type> ::= DATATYPE <path_name> | <datatype>
|
|
|
|
|
|
|
|
<enum> ::= H5T_ENUM { <enum_base_type> <enum_def>+ }
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<enum_base_type> ::= <integer>
|
|
|
|
// Currently enums can only hold integer type data, but they may be expanded
|
|
|
|
// in the future to hold any datatype
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<enum_def> ::= <enum_symbol> <enum_val>;
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<enum_symbol> ::= <identifier>
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<enum_val> ::= <int_value>
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<path_name> ::= <path_part>+
|
|
|
|
|
|
|
|
<path_part> ::= /<identifier>
|
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<dataspace> ::= <scalar_space> | <simple_space> | <complex_space>
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<scalar_space> ::= SCALAR
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<simple_space> ::= SIMPLE { <current_dims> / <max_dims> }
|
|
|
|
|
|
|
|
<complex_space> ::= COMPLEX { <complex_space_definition> }
|
|
|
|
|
|
|
|
<dataset_space> ::= DATASPACE <path_name> | <dataspace>
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<current_dims> ::= <dims>
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2001-03-06 04:45:49 +08:00
|
|
|
<max_dims> ::= `(' <max_dim_list> `)'
|
|
|
|
|
|
|
|
<max_dim_list> ::= <max_dim> | <max_dim>, <max_dim_list>
|
|
|
|
|
|
|
|
<max_dim> ::= <int_value> | H5S_UNLIMITED
|
1998-12-22 06:54:16 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<complex_space_definition> ::= TBD
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2001-03-29 05:21:56 +08:00
|
|
|
<data> ::= DATA { <scalar_space_data> | <simple_space_data> | <complex_space_data> } | <subset>
|
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<scalar_space_data> ::= <any_element>
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<any_element> ::= <atomic_element> | <compound_element> |
|
2000-12-12 02:49:53 +08:00
|
|
|
<variable_length_element> | <array_element>
|
2000-11-22 03:31:19 +08:00
|
|
|
|
|
|
|
<any_data_seq> ::= <any_element> | <any_element>, <any_data_seq>
|
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<atomic_element> :: = <integer_data> | <float_data> | <time_data> |
|
|
|
|
<string_data> | <bitfield_data> | <opaque_data> |
|
|
|
|
<enum_data> | <reference_data>
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2001-03-29 05:21:56 +08:00
|
|
|
<subset> ::= SUBSET { <start>;
|
|
|
|
<stride>;
|
|
|
|
<count>;
|
|
|
|
<block>;
|
|
|
|
DATA { <simple_space_data> }
|
|
|
|
}
|
|
|
|
|
|
|
|
<start> ::= START (<coor_list>)
|
|
|
|
|
|
|
|
<stride> ::= STRIDE (<pos_list>)
|
|
|
|
|
|
|
|
<count> ::= COUNT (<coor_list>)
|
|
|
|
|
|
|
|
<block> ::= BLOCK (<coor_list>)
|
|
|
|
|
|
|
|
<coor_list> ::= <int_value>, <coor_list> | <int_value>
|
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<integer_data> ::= <int_value>
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<float_data> ::= a floating point number
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<time_data> ::= TBD
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<string_data> ::= a string
|
|
|
|
// A string is enclosed in double quotes.
|
2000-11-22 03:31:19 +08:00
|
|
|
// If a string is displayed on more than one line, string concatenate
|
|
|
|
// operator '//'is used.
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<bitfield_data> ::= TBD
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<opaque_data> ::= TBD
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<enum_data> ::= <enum_symbol>
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<reference_data> ::= <object_ref_data> | <data_region_data> | NULL
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<object_ref_data> ::= <object_type> <object_num>
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<object_type> ::= DATASET | GROUP | DATATYPE
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<object_id> ::= OBJECTID { <object_num> }
|
1999-10-02 07:35:12 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<object_num> ::= <int_value>:<int_value> | <int_value>
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2001-03-29 05:21:56 +08:00
|
|
|
<data_region_data> ::= H5T_STD_REF_DSETREG <object_num> { <data_region_data_list> }
|
|
|
|
|
|
|
|
<data_region_data_list> ::= <data_region_data_info>, <data_region_data_list> | <data_region_data_info>
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<data_region_data_info> ::= <region_info> | <point_info>
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<region_info> ::= (<region_vals>)
|
|
|
|
|
2001-03-29 05:21:56 +08:00
|
|
|
<region_vals> ::= <lower_bound>:<upper_bound>, <region_vals> | <lower_bound>:<upper_bound>
|
2000-12-12 02:49:53 +08:00
|
|
|
|
|
|
|
<lower_bound> ::= <int_value>
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<upper_bound> ::= <int_value>
|
1999-06-25 02:52:06 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<point_info> ::= (<point_vals>)
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<point_vals> ::= <int_value> | <int_value>, <point_vals>
|
1998-12-22 06:54:16 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<compound_element> ::= { <any_data_seq> }
|
1998-12-22 06:54:16 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<atomic_simple_data> :: = <atomic_element>, <atomic_simple_data> | <atomic_element>
|
1998-12-22 06:54:16 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<simple_space_data> :: = <any_data_seq>
|
1998-12-22 06:54:16 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<variable_length_element> ::= ( <any_data_seq> )
|
2000-11-18 02:49:58 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<array_element> ::= `[' <any_data_seq> `]'
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<complex_space_data> ::= TBD
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<named_datatype> ::= DATATYPE <type_name> { <datatype> }
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<type_name> ::= <identifier>
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<named_dataspace> ::= TBD
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<hardlink> ::= HARDLINK <path_name>
|
|
|
|
|
|
|
|
<group> ::= GROUP <group_name> { <hardlink> | <group_info> }
|
2002-01-06 00:33:50 +08:00
|
|
|
|
|
|
|
<group_comment> ::= COMMENT <string_data>
|
2000-05-18 23:14:53 +08:00
|
|
|
|
|
|
|
<group_name> ::= <identifier>
|
1998-12-22 06:54:16 +08:00
|
|
|
|
2002-01-06 00:33:50 +08:00
|
|
|
<group_info> ::= <object_id><FONT SIZE=1.7>opt</FONT> <group_comment><FONT SIZE=1.7>opt</FONT> <group_attribute>* <group_member>*
|
2000-11-22 03:31:19 +08:00
|
|
|
|
|
|
|
<group_attribute> ::= <attribute>
|
|
|
|
|
|
|
|
<group_member> ::= <named_datatype> | <named_dataspace> | <group> |
|
2000-12-12 02:49:53 +08:00
|
|
|
<dataset> | <softlink>
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-11-22 03:31:19 +08:00
|
|
|
<dataset> ::= DATASET <dataset_name> { <hardlink> | <dataset_info> }
|
|
|
|
|
|
|
|
<dataset_info> ::= <dataset_type> <dataset_space> <storagelayout><FONT SIZE=1.7>opt</FONT>
|
2000-12-12 02:49:53 +08:00
|
|
|
<compression><FONT SIZE=1.7>opt</FONT> <dataset_attribute>* <object_id><FONT SIZE=1.7>opt</FONT>
|
|
|
|
<data><FONT SIZE=1.7>opt</FONT>
|
2000-11-22 03:31:19 +08:00
|
|
|
// Tokens above can be in any order as long as <data> is
|
|
|
|
// after <dataset_type> and <dataset_space>.
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<dataset_name> ::= <identifier>
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<storagelayout> :: = STORAGELAYOUT <contiguous_layout> |
|
2000-12-12 02:49:53 +08:00
|
|
|
STORAGELAYOUT <chunked_layout> |
|
|
|
|
STORAGELAYOUT <compact_layout> |
|
2000-05-18 23:14:53 +08:00
|
|
|
STORAGELAYOUT <external_layout>
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<contiguous_layout> ::= {CONTIGUOUS} // default
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<chunked_layout> ::= {CHUNKED <dims> }
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<dims> ::= (<dims_values>)
|
|
|
|
|
|
|
|
<dims_values> ::= <int_value> | <int_value>, <dims_values>
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<compact_layout> ::= TBD
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<external_layout> ::= {EXTERNAL <external_file>+ }
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<external_file> ::= (<file_name> <offset> <size>)
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<offset> ::= <int_value>
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<size> ::= <int_value>
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<compression> :: = COMPRESSION { TBD }
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<dataset_attribute> ::= <attribute>
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<softlink> ::= SOFTLINK <softlink_name> { LINKTARGET <target> }
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<softlink_name> ::= <identifier>
|
1998-08-28 05:44:08 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
<target> ::= <identifier>
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<identifier> ::= a string
|
2000-05-18 23:14:53 +08:00
|
|
|
// character '/' should be used with care.
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2001-03-29 05:21:56 +08:00
|
|
|
<pos_list> ::= <pos_int>, <pos_list> | <pos_int>
|
|
|
|
|
|
|
|
<int_value> ::= 0 | <pos_int>
|
|
|
|
|
|
|
|
<pos_int> ::= [1-9][0-9]*
|
2000-12-12 02:49:53 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
</PRE>
|
2000-12-12 02:49:53 +08:00
|
|
|
</DIR>
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<H2>4. An Example of an HDF5 File in DDL</H2>
|
1998-07-15 03:00:46 +08:00
|
|
|
|
2000-12-12 02:49:53 +08:00
|
|
|
<DIR>
|
2000-05-18 23:14:53 +08:00
|
|
|
<PRE>
|
|
|
|
HDF5 "example.h5" {
|
1998-10-30 09:09:28 +08:00
|
|
|
GROUP "/" {
|
2000-05-18 23:14:53 +08:00
|
|
|
ATTRIBUTE "attr1" {
|
2000-11-22 03:31:19 +08:00
|
|
|
DATATYPE H5T_STRING {
|
|
|
|
STRSIZE 17;
|
2000-05-18 23:14:53 +08:00
|
|
|
STRPAD H5T_STR_NULLTERM;
|
|
|
|
CSET H5T_CSET_ASCII;
|
|
|
|
CTYPE H5T_C_S1;
|
|
|
|
}
|
2000-11-22 03:31:19 +08:00
|
|
|
DATASPACE SCALAR
|
2000-05-18 23:14:53 +08:00
|
|
|
DATA {
|
|
|
|
"string attribute"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
DATASET "dset1" {
|
2000-11-22 03:31:19 +08:00
|
|
|
DATATYPE H5T_STD_I32BE
|
|
|
|
DATASPACE SIMPLE { ( 10, 10 ) / ( 10, 10 ) }
|
2000-05-18 23:14:53 +08:00
|
|
|
DATA {
|
|
|
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
|
|
|
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
|
|
|
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
|
|
|
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
|
|
|
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
|
|
|
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
|
|
|
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
|
|
|
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
|
|
|
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
|
|
|
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
|
|
|
|
}
|
|
|
|
}
|
|
|
|
DATASET "dset2" {
|
2000-11-22 03:31:19 +08:00
|
|
|
DATATYPE H5T_COMPOUND {
|
2000-05-18 23:14:53 +08:00
|
|
|
H5T_STD_I32BE "a";
|
|
|
|
H5T_IEEE_F32BE "b";
|
|
|
|
H5T_IEEE_F64BE "c";
|
|
|
|
}
|
2000-11-22 03:31:19 +08:00
|
|
|
DATASPACE SIMPLE { ( 5 ) / ( 5 ) }
|
2000-05-18 23:14:53 +08:00
|
|
|
DATA {
|
|
|
|
{
|
2000-11-22 03:31:19 +08:00
|
|
|
1,
|
|
|
|
0.1,
|
|
|
|
0.01
|
2000-05-18 23:14:53 +08:00
|
|
|
},
|
|
|
|
{
|
2000-11-22 03:31:19 +08:00
|
|
|
2,
|
|
|
|
0.2,
|
|
|
|
0.02
|
2000-05-18 23:14:53 +08:00
|
|
|
},
|
|
|
|
{
|
2000-11-22 03:31:19 +08:00
|
|
|
3,
|
|
|
|
0.3,
|
|
|
|
0.03
|
2000-05-18 23:14:53 +08:00
|
|
|
},
|
|
|
|
{
|
2000-11-22 03:31:19 +08:00
|
|
|
4,
|
|
|
|
0.4,
|
|
|
|
0.04
|
2000-05-18 23:14:53 +08:00
|
|
|
},
|
|
|
|
{
|
2000-11-22 03:31:19 +08:00
|
|
|
5,
|
|
|
|
0.5,
|
|
|
|
0.05
|
2000-05-18 23:14:53 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
GROUP "group1" {
|
2002-01-06 00:33:50 +08:00
|
|
|
COMMENT "This is a comment for group1";
|
2000-05-18 23:14:53 +08:00
|
|
|
DATASET "dset3" {
|
2000-11-22 03:31:19 +08:00
|
|
|
DATATYPE "/type1"
|
|
|
|
DATASPACE SIMPLE { ( 5 ) / ( 5 ) }
|
2000-05-18 23:14:53 +08:00
|
|
|
DATA {
|
|
|
|
{
|
|
|
|
[ 0, 1, 2, 3 ],
|
|
|
|
[ 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
|
|
|
|
0.2, 0.2, 0.2, 0.2, 0.2, 0.2,
|
|
|
|
0.3, 0.3, 0.3, 0.3, 0.3, 0.3,
|
|
|
|
0.4, 0.4, 0.4, 0.4, 0.4, 0.4,
|
|
|
|
0.5, 0.5, 0.5, 0.5, 0.5, 0.5 ]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
[ 0, 1, 2, 3 ],
|
|
|
|
[ 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
|
|
|
|
0.2, 0.2, 0.2, 0.2, 0.2, 0.2,
|
|
|
|
0.3, 0.3, 0.3, 0.3, 0.3, 0.3,
|
|
|
|
0.4, 0.4, 0.4, 0.4, 0.4, 0.4,
|
|
|
|
0.5, 0.5, 0.5, 0.5, 0.5, 0.5 ]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
[ 0, 1, 2, 3 ],
|
|
|
|
[ 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
|
|
|
|
0.2, 0.2, 0.2, 0.2, 0.2, 0.2,
|
|
|
|
0.3, 0.3, 0.3, 0.3, 0.3, 0.3,
|
|
|
|
0.4, 0.4, 0.4, 0.4, 0.4, 0.4,
|
|
|
|
0.5, 0.5, 0.5, 0.5, 0.5, 0.5 ]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
[ 0, 1, 2, 3 ],
|
|
|
|
[ 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
|
|
|
|
0.2, 0.2, 0.2, 0.2, 0.2, 0.2,
|
|
|
|
0.3, 0.3, 0.3, 0.3, 0.3, 0.3,
|
|
|
|
0.4, 0.4, 0.4, 0.4, 0.4, 0.4,
|
|
|
|
0.5, 0.5, 0.5, 0.5, 0.5, 0.5 ]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
[ 0, 1, 2, 3 ],
|
|
|
|
[ 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
|
|
|
|
0.2, 0.2, 0.2, 0.2, 0.2, 0.2,
|
|
|
|
0.3, 0.3, 0.3, 0.3, 0.3, 0.3,
|
|
|
|
0.4, 0.4, 0.4, 0.4, 0.4, 0.4,
|
|
|
|
0.5, 0.5, 0.5, 0.5, 0.5, 0.5 ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2000-11-18 02:49:58 +08:00
|
|
|
DATASET "dset3" {
|
2000-11-22 03:31:19 +08:00
|
|
|
DATATYPE H5T_VLEN { H5T_STD_I32LE }
|
|
|
|
DATASPACE SIMPLE { ( 4 ) / ( 4 ) }
|
2000-11-18 02:49:58 +08:00
|
|
|
DATA {
|
2000-11-22 03:31:19 +08:00
|
|
|
(0), (10, 11), (20, 21, 22), (30, 31, 32, 33)
|
2000-11-18 02:49:58 +08:00
|
|
|
}
|
|
|
|
}
|
2000-05-18 23:14:53 +08:00
|
|
|
GROUP "group2" {
|
|
|
|
HARDLINK "/group1"
|
|
|
|
}
|
|
|
|
SOFTLINK "slink1" {
|
|
|
|
LINKTARGET "somevalue"
|
|
|
|
}
|
2000-11-22 03:31:19 +08:00
|
|
|
DATATYPE "type1" H5T_COMPOUND {
|
|
|
|
H5T_ARRAY { [4] H5T_STD_I32BE } "a";
|
|
|
|
H5T_ARRAY { [5][6] H5T_IEEE_F32BE } "b";
|
2000-05-18 23:14:53 +08:00
|
|
|
}
|
1998-10-30 09:09:28 +08:00
|
|
|
}
|
2000-05-18 23:14:53 +08:00
|
|
|
}
|
|
|
|
</pre>
|
1998-10-30 09:09:28 +08:00
|
|
|
</dir>
|
|
|
|
|
2000-05-18 23:14:53 +08:00
|
|
|
|
2003-03-15 03:12:34 +08:00
|
|
|
<!-- #BeginLibraryItem "/ed_libs/NavBar_UG.lbi" --><hr>
|
2000-05-18 23:14:53 +08:00
|
|
|
<center>
|
|
|
|
<table border=0 width=98%>
|
|
|
|
<tr><td valign=top align=left>
|
2003-03-15 03:12:34 +08:00
|
|
|
<a href="index.html">HDF5 documents and links</a> <br>
|
|
|
|
<a href="H5.intro.html">Introduction to HDF5</a> <br>
|
|
|
|
<a href="RM_H5Front.html">HDF5 Reference Manual</a> <br>
|
2003-07-04 03:40:03 +08:00
|
|
|
<a href="http://hdf.ncsa.uiuc.edu/HDF5/doc/UG/index.html">HDF5 User's Guide for Release 1.6</a> <br>
|
2003-03-15 03:12:34 +08:00
|
|
|
<!--
|
|
|
|
<a href="Glossary.html">Glossary</a><br>
|
|
|
|
-->
|
2000-05-18 23:14:53 +08:00
|
|
|
</td>
|
|
|
|
<td valign=top align=right>
|
2003-03-15 03:12:34 +08:00
|
|
|
And in this document, the
|
2003-07-04 03:40:03 +08:00
|
|
|
<a href="H5.user.html"><strong>HDF5 User's Guide from Release 1.4.5:</strong></a>
|
2003-03-15 03:12:34 +08:00
|
|
|
<br>
|
|
|
|
<a href="Files.html">Files</a>
|
|
|
|
<a href="Datasets.html">Datasets</a>
|
|
|
|
<a href="Datatypes.html">Datatypes</a>
|
|
|
|
<a href="Dataspaces.html">Dataspaces</a>
|
|
|
|
<a href="Groups.html">Groups</a>
|
|
|
|
<br>
|
|
|
|
<a href="References.html">References</a>
|
|
|
|
<a href="Attributes.html">Attributes</a>
|
|
|
|
<a href="Properties.html">Property Lists</a>
|
|
|
|
<a href="Errors.html">Error Handling</a>
|
|
|
|
<br>
|
|
|
|
<a href="Filters.html">Filters</a>
|
|
|
|
<a href="Caching.html">Caching</a>
|
|
|
|
<a href="Chunking.html">Chunking</a>
|
|
|
|
<a href="MountingFiles.html">Mounting Files</a>
|
|
|
|
<br>
|
|
|
|
<a href="Performance.html">Performance</a>
|
|
|
|
<a href="Debugging.html">Debugging</a>
|
|
|
|
<a href="Environment.html">Environment</a>
|
|
|
|
<a href="ddl.html">DDL</a>
|
2000-05-18 23:14:53 +08:00
|
|
|
</td></tr>
|
|
|
|
</table>
|
|
|
|
</center>
|
1998-10-30 09:09:28 +08:00
|
|
|
<hr>
|
2003-03-15 03:12:34 +08:00
|
|
|
<!-- #EndLibraryItem --><!-- #BeginLibraryItem "/ed_libs/Footer.lbi" --><address>
|
|
|
|
<a href="mailto:hdfhelp@ncsa.uiuc.edu">HDF Help Desk</a>
|
2000-12-09 06:12:36 +08:00
|
|
|
<br>
|
2003-10-28 05:55:13 +08:00
|
|
|
Describes HDF5 Release 1.7, the unreleased development branch; working toward HDF5 Release 1.8.0
|
2003-03-15 03:12:34 +08:00
|
|
|
</address><!-- #EndLibraryItem -->
|
|
|
|
|
2000-12-09 06:12:36 +08:00
|
|
|
|
2003-03-15 03:12:34 +08:00
|
|
|
Last modified: 17 November 2000
|
2000-12-09 06:12:36 +08:00
|
|
|
|
2003-03-15 03:12:34 +08:00
|
|
|
|
1998-10-30 09:09:28 +08:00
|
|
|
</body>
|
|
|
|
</html>
|