1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585
|
<html>
<head><title>
HDF5/Predefined Datatypes
</title>
<link href="../ed_styles/RMelect.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF">
<!-- #BeginLibraryItem "/ed_libs/styles_RM.lbi" -->
<!--
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* 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://www.hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
* access to either file, you may request a copy from help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-->
<!-- #EndLibraryItem --><!-- #BeginLibraryItem "/ed_libs/NavBar_RM.lbi" -->
<hr>
<center>
<table border=0 width=98%>
<tr><td valign=top align=left>
<a href="../index.html">HDF5 documents and links</a> <br>
<a href="../H5.intro.html">Introduction to HDF5</a> <br>
<a href="../UG/index.html">HDF5 User Guide</a> <br>
<!--
<a href="Glossary.html">Glossary</a><br>
-->
</td>
<td valign=top align=right>
In the
<a href="RM_H5Front.html">HDF5 Reference Manual</a>
<font size="-1"><br>
<a href="../HL/RM_H5DS.html">H5DS</a>
<a href="../HL/RM_H5IM.html">H5IM</a>
<a href="../HL/RM_H5LT.html">H5LT</a>
<a href="../HL/RM_H5PT.html">H5PT</a>
<a href="../HL/RM_H5TB.html">H5TB</a>
<a href="../HL/RM_HDF5Optimized.html">Optimized</a>
<br>
<a href="RM_H5.html">H5</a>
<a href="RM_H5A.html">H5A</a>
<a href="RM_H5D.html">H5D</a>
<a href="RM_H5E.html">H5E</a>
<a href="RM_H5F.html">H5F</a>
<a href="RM_H5G.html">H5G</a>
<a href="RM_H5I.html">H5I</a>
<br>
<a href="RM_H5L.html">H5L</a>
<a href="RM_H5O.html">H5O</a>
<a href="RM_H5P.html">H5P</a>
<a href="RM_H5R.html">H5R</a>
<a href="RM_H5S.html">H5S</a>
<a href="RM_H5T.html">H5T</a>
<a href="RM_H5Z.html">H5Z</a>
<br>
<a href="Tools.html">Tools</a>
<a href="PredefDTypes.html">Datatypes</a>
<a href="../fortran/index.html">Fortran</a>
<a href="APICompatMacros.html">Compatibility Macros</a>
<br>
<a href="CollectiveCalls.html">Collective Calls in Parallel</a>
</font>
<!--
<br>
<i><font size=-1>(Printable <a href="http://hdfgroup.org/HDF5/doc/PSandPDF/HDF5_RefManual.PDF">PDF</a> of this Reference Manual)</font></i>
-->
</td></tr>
</table>
</center>
<hr>
<!-- #EndLibraryItem --><center>
<h1>HDF5 Predefined Datatypes</h1>
</center>
The following datatypes are predefined in HDF5.
<h4>IEEE floating point datatypes</h4>
<ul>
<li>32-bit and 64-bit
<li>Big-endian and little-endian
</ul>
<pre>
H5T_IEEE_F32BE
H5T_IEEE_F32LE
H5T_IEEE_F64BE
H5T_IEEE_F64LE
</pre>
<h4>Standard datatypes</h4>
<ul>
<li>Signed integer (2's complement), unsigned integer, and bitfield
<li>8-bit, 16-bit, 32-bit, and 64-bit
<li>Big-endian and little-endian
</ul>
<table border=0 width=76%>
<tr><td valign=top width=33% align=left>
<pre>
H5T_STD_I8BE
H5T_STD_I8LE
H5T_STD_I16BE
H5T_STD_I16LE
H5T_STD_I32BE
H5T_STD_I32LE
H5T_STD_I64BE
H5T_STD_I64LE
</pre>
</td>
<td valign=top width=34% align=left>
<pre>
H5T_STD_U8BE
H5T_STD_U8LE
H5T_STD_U16BE
H5T_STD_U16LE
H5T_STD_U32BE
H5T_STD_U32LE
H5T_STD_U64BE
H5T_STD_U64LE
</pre>
</td>
<td valign=top width=33% align=left>
<pre>
H5T_STD_B8BE
H5T_STD_B8LE
H5T_STD_B16BE
H5T_STD_B16LE
H5T_STD_B32BE
H5T_STD_B32LE
H5T_STD_B64BE
H5T_STD_B64LE
</pre>
</tr></td>
</table>
<ul>
<li>Object reference or dataset region reference
</ul>
<pre>
H5T_STD_REF_OBJ
H5T_STD_REF_DSETREG
</pre>
<h4>UNIX-specific string datatypes</h4>
<ul>
<li>32-bit and 64-bit
<li>Big-endian and little-endian
</ul>
<pre>
H5T_UNIX_D32BE
H5T_UNIX_D32LE
H5T_UNIX_D64BE
H5T_UNIX_D64LE
</pre>
<h4>C-specific string datatype</h4>
<ul>
<li>String datatype in C (size defined in bytes rather than in bits)
</ul>
<pre>
H5T_C_S1
</pre>
<h4>Fortran-specific string datatype</h4>
<ul>
<li>String datatype in Fortran (as defined for the HDF5 C library)
</ul>
<pre>
H5T_FORTRAN_S1
</pre>
<h4>Intel-specific datatypes</h4>
<ul>
<li>For Intel CPUs
<li>Little-endian
<li>Signed integer (2's complement), unsigned integer, bitfield, and
IEEE floating point
<li>8-bit, 16-bit, 32-bit, and 64-bit
</ul>
<table border=0 width=76%>
<tr><td valign=top width=50% align=left>
<pre>
H5T_INTEL_I8
H5T_INTEL_I16
H5T_INTEL_I32
H5T_INTEL_I64
H5T_INTEL_U8
H5T_INTEL_U16
H5T_INTEL_U32
H5T_INTEL_U64
</pre>
</td>
<td valign=top width=50% align=left>
<pre>
H5T_INTEL_B8
H5T_INTEL_B16
H5T_INTEL_B32
H5T_INTEL_B64
H5T_INTEL_F32
H5T_INTEL_F64
</pre>
</tr></td>
</table>
<h4>DEC Alpha-specific datatypes</h4>
<ul>
<li>For DEC Alpha CPUs
<li>Little-endian
<li>Signed integer (2's complement), unsigned integer, bitfield, and
IEEE floating point
<li>8-bit, 16-bit, 32-bit, and 64-bit
</ul>
<table border=0 width=76%>
<tr><td valign=top width=50% align=left>
<pre>
H5T_ALPHA_I8
H5T_ALPHA_I16
H5T_ALPHA_I32
H5T_ALPHA_I64
H5T_ALPHA_U8
H5T_ALPHA_U16
H5T_ALPHA_U32
H5T_ALPHA_U64
</pre>
</td>
<td valign=top width=50% align=left>
<pre>
H5T_ALPHA_B8
H5T_ALPHA_B16
H5T_ALPHA_B32
H5T_ALPHA_B64
H5T_ALPHA_F32
H5T_ALPHA_F64
</pre>
</tr></td>
</table>
<h4>OpenVMS DEC Alpha-specific datatypes</h4>
<ul>
<li>For OpenVMS on DEC Alpha CPUs
<li>VAX byte order
<li>32- and 64-bit floating point
</ul>
<table border=0 width=76%>
<tr><td valign=top width=50% align=left>
<pre>
H5T_VAX_F32 (Corresponds to F_Floating type)
H5T_VAX_F64 (Corresponds to G_Floating type)
</pre>
</tr></td>
</table>
<!-- NEW PAGE -->
<h4>MIPS-specific datatypes</h4>
<ul>
<li>For MIPS CPUs, commonly used in SGI system
<li>Big-endian
<li>Signed integer (2's complement), unsigned integer, bitfield, and
IEEE floating point
<li>8-bit, 16-bit, 32-bit, and 64-bit
</ul>
<table border=0 width=76%>
<tr><td valign=top width=50% align=left>
<pre>
H5T_MIPS_I8
H5T_MIPS_I16
H5T_MIPS_I32
H5T_MIPS_I64
H5T_MIPS_U8
H5T_MIPS_U16
H5T_MIPS_U32
H5T_MIPS_U64
</pre>
</td>
<td valign=top width=50% align=left>
<pre>
H5T_MIPS_B8
H5T_MIPS_B16
H5T_MIPS_B32
H5T_MIPS_B64
H5T_MIPS_F32
H5T_MIPS_F64
</pre>
</tr></td>
</table>
<h4>Predefined native datatypes</h4>
<dir>
These are the datatypes detected by <code>H5detect</code>.
Their names differ from other HDF5 datatype names as follows:
<ul>
<li>Instead of a class name, precision, and byte order as the last
component, they have a C-like datatype name.
<li>If the datatype begins with <code>U</code>, then it is the unsigned
version of the integer datatype; other integer datatypes are signed.
<li>The datatype <code>LLONG</code> corresponds to
C's <code>long_long</code> and
<code>LDOUBLE</code> is <code>long_double</code>.
These datatypes might be the same as <code>LONG</code> and
<code>DOUBLE</code>, respectively.
</ul>
</dir>
<table border=0 width=76%>
<tr><td valign=top width=50% align=left>
<pre>
H5T_NATIVE_CHAR
H5T_NATIVE_SCHAR
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
</pre>
</td>
<td valign=top width=50% align=left>
<pre>
H5T_NATIVE_FLOAT
H5T_NATIVE_DOUBLE
H5T_NATIVE_LDOUBLE
H5T_NATIVE_B8
H5T_NATIVE_B16
H5T_NATIVE_B32
H5T_NATIVE_B64
H5T_NATIVE_OPAQUE
H5T_NATIVE_HADDR
H5T_NATIVE_HSIZE
H5T_NATIVE_HSSIZE
H5T_NATIVE_HERR
H5T_NATIVE_HBOOL
</pre>
</tr></td>
</table>
<!-- NEW PAGE -->
<h4>ANSI C9x-specific native integer datatypes</h4>
<ul>
<li>Signed integer (2's complement) and unsigned integer
<li>8-bit, 16-bit, 32-bit, and 64-bit
<li><code>LEAST</code> -- storage to use least amount of space
<br>
<code>FAST</code> -- storage to maximize performance
</ul>
<table border=0 width=76%>
<tr><td valign=top width=50% align=left>
<pre>
H5T_NATIVE_INT8
H5T_NATIVE_UINT8
H5T_NATIVE_INT_LEAST8
H5T_NATIVE_UINT_LEAST8
H5T_NATIVE_INT_FAST8
H5T_NATIVE_UINT_FAST8
H5T_NATIVE_INT16
H5T_NATIVE_UINT16
H5T_NATIVE_INT_LEAST16
H5T_NATIVE_UINT_LEAST16
H5T_NATIVE_INT_FAST16
H5T_NATIVE_UINT_FAST16
</pre>
</td>
<td valign=top width=50% align=left>
<pre>
H5T_NATIVE_INT32
H5T_NATIVE_UINT32
H5T_NATIVE_INT_LEAST32
H5T_NATIVE_UINT_LEAST32
H5T_NATIVE_INT_FAST32
H5T_NATIVE_UINT_FAST32
H5T_NATIVE_INT64
H5T_NATIVE_UINT64
H5T_NATIVE_INT_LEAST64
H5T_NATIVE_UINT_LEAST64
H5T_NATIVE_INT_FAST64
H5T_NATIVE_UINT_FAST64
</pre>
</tr></td>
</table>
<a name="F90">
<h4>Fortran API datatypes</h4>
</a>
<ul>
<li>Datatypes defined for both the Fortran90 and Fortran2003 APIs,
unless otherwise noted
<br>
<br>
<li>Native integer, single-precision real, double-precision real,
and character
</ul>
<pre>
H5T_NATIVE_INTEGER
H5T_NATIVE_REAL
H5T_NATIVE_DOUBLE
H5T_NATIVE_CHARACTER
</pre>
<ul>
<li>Signed integer (2's complement), unsigned integer, and
IEEE floating point
<li>8-bit, 16-bit, 32-bit, and 64-bit
<li>Big-endian and little-endian
</ul>
<table border=0 width=76%>
<tr><td valign=top width=33% align=left>
<pre>
H5T_STD_I8BE
H5T_STD_I8LE
H5T_STD_I16BE
H5T_STD_I16LE
H5T_STD_I32BE
H5T_STD_I32LE
H5T_STD_I64BE
H5T_STD_I64LE
</pre>
</td>
<td valign=top width=34% align=left>
<pre>
H5T_STD_U8BE
H5T_STD_U8LE
H5T_STD_U16BE
H5T_STD_U16LE
H5T_STD_U32BE
H5T_STD_U32LE
H5T_STD_U64BE
H5T_STD_U64LE
</pre>
</td>
<td valign=top width=33% align=left>
<pre>
H5T_IEEE_F32BE
H5T_IEEE_F32LE
H5T_IEEE_F64BE
H5T_IEEE_F64LE
</pre>
</tr></td>
</table>
<ul>
<li>Object reference or dataset region reference
</ul>
<pre>
H5T_STD_REF_OBJ
H5T_STD_REF_DSETREG
</pre>
<!-- #BeginLibraryItem "/ed_libs/NavBar_RM.lbi" -->
<hr>
<center>
<table border=0 width=98%>
<tr><td valign=top align=left>
<a href="../index.html">HDF5 documents and links</a> <br>
<a href="../H5.intro.html">Introduction to HDF5</a> <br>
<a href="../UG/index.html">HDF5 User Guide</a> <br>
<!--
<a href="Glossary.html">Glossary</a><br>
-->
</td>
<td valign=top align=right>
In the
<a href="RM_H5Front.html">HDF5 Reference Manual</a>
<font size="-1"><br>
<a href="../HL/RM_H5DS.html">H5DS</a>
<a href="../HL/RM_H5IM.html">H5IM</a>
<a href="../HL/RM_H5LT.html">H5LT</a>
<a href="../HL/RM_H5PT.html">H5PT</a>
<a href="../HL/RM_H5TB.html">H5TB</a>
<a href="../HL/RM_HDF5Optimized.html">Optimized</a>
<br>
<a href="RM_H5.html">H5</a>
<a href="RM_H5A.html">H5A</a>
<a href="RM_H5D.html">H5D</a>
<a href="RM_H5E.html">H5E</a>
<a href="RM_H5F.html">H5F</a>
<a href="RM_H5G.html">H5G</a>
<a href="RM_H5I.html">H5I</a>
<br>
<a href="RM_H5L.html">H5L</a>
<a href="RM_H5O.html">H5O</a>
<a href="RM_H5P.html">H5P</a>
<a href="RM_H5R.html">H5R</a>
<a href="RM_H5S.html">H5S</a>
<a href="RM_H5T.html">H5T</a>
<a href="RM_H5Z.html">H5Z</a>
<br>
<a href="Tools.html">Tools</a>
<a href="PredefDTypes.html">Datatypes</a>
<a href="../fortran/index.html">Fortran</a>
<a href="APICompatMacros.html">Compatibility Macros</a>
<br>
<a href="CollectiveCalls.html">Collective Calls in Parallel</a>
</font>
<!--
<br>
<i><font size=-1>(Printable <a href="http://hdfgroup.org/HDF5/doc/PSandPDF/HDF5_RefManual.PDF">PDF</a> of this Reference Manual)</font></i>
-->
</td></tr>
</table>
</center>
<hr>
<!-- #EndLibraryItem --><!-- #BeginLibraryItem "/ed_libs/Footer.lbi" -->
<address>
<table width="100%" border="0">
<tr valign="top">
<td align="left">
<address>
The HDF Group Help Desk: <img src="../Graphics/help.png" align=top height=16>
<br>
Describes HDF5 Release 1.8.13, May 2014.
</address>
</td><td width="5%"> </td>
<td align="right">
<a href="../Copyright.html">Copyright</a> by
<a href="http://www.hdfgroup.org">The HDF Group</a>
<br>
and the Board of Trustees of the University of Illinois
</td>
</tr>
</table>
</address>
<!-- #EndLibraryItem --><SCRIPT LANGUAGE="JAVASCRIPT">
<!--
document.writeln("Last modified: 24 January 2013");
-->
</SCRIPT>
</body>
</html>
|