MATLAB Programming
MATLAB Programming MATLAB Programming
7 Working with Scientific Data Formats Step5: ClosingHDFFilesandtheHDFImportTool To close a file, select the file in the contents pane and click Close File on the HDF Import Tool File menu. To close all the files open in the HDF Import Tool, click Close All Files on the HDF Import Tool File menu. To close the tool, click Close HDFTool in the HDF Import Tool File menu or click the Close button in the upper right corner of the tool. If you used the hdftool syntax that returns a handle to the tool, h = hdftool('example.hdf') you can use the close(h) command to close the tool from the MATLAB command line. Using the HDF Import Tool Subsetting Options When you select a data set, the importing and subsetting pane displays the subsetting options available for that type of data set. The following sections provide information about these subsetting options for all supported data set types. For general information about the HDF Import tool, see “Using the HDF Import Tool” on page 7-35. • “HDF Scientific Data Sets (SD)” on page 7-41 • “HDF Vdata” on page 7-41 • “HDF-EOS Grid Data” on page 7-43 • “HDF-EOS Point Data” on page 7-48 • “HDF-EOS Swath Data” on page 7-48 • “HDF Raster Image Data” on page 7-52 Note To use these data subsetting options effectively, you must understand the HDF and HDF-EOS data formats. Therefore, use this documentation in conjunction with the HDF documentation (www.hdfgroup.org) andthe HDF-EOS documentation (www.hdfeos.org). 7-40
Hierarchical Data Format (HDF4) Files HDF Scientific Data Sets (SD) The HDF scientific data set (SD) is a group of data structures used to store and describe multidimensional arrays of scientific data. Using the HDF Import Tool subsetting parameters, you can import a subset of an HDF scientific data set by specifying the location, range, and number of values to be read along each dimension. Subsetting parameters Dimension The subsetting parameters are: • Start — Specifies the position on the dimension to begin reading. The default value is 1, which starts reading at the first element of each dimension. The values specified must not exceed the size of the relevant dimension of the data set. • Increment — Specifies the interval between the values to read. The default value is 1, which reads every element of the data set. • Length — Specifies how much data to read along each dimension. The default value is the length of the dimension, which causes all the data to be read. HDF Vdata HDF Vdata data sets provide a framework for storing customized tables. A Vdata table consists of a collection of records whose values are stored in 7-41
- Page 552 and 553: 6 Data Import and Export • Two sp
- Page 554 and 555: 6 Data Import and Export Exchanging
- Page 556 and 557: 6 Data Import and Export urlread('h
- Page 558 and 559: 6 Data Import and Export Once you h
- Page 560 and 561: 6 Data Import and Export For exampl
- Page 562 and 563: 6 Data Import and Export 6-124
- Page 564 and 565: 7 Working with Scientific Data Form
- Page 566 and 567: 7 Working with Scientific Data Form
- Page 568 and 569: 7 Working with Scientific Data Form
- Page 570 and 571: 7 Working with Scientific Data Form
- Page 572 and 573: 7 Working with Scientific Data Form
- Page 574 and 575: 7 Working with Scientific Data Form
- Page 576 and 577: 7 Working with Scientific Data Form
- Page 578 and 579: 7 Working with Scientific Data Form
- Page 580 and 581: 7 Working with Scientific Data Form
- Page 582 and 583: 7 Working with Scientific Data Form
- Page 584 and 585: 7 Working with Scientific Data Form
- Page 586 and 587: 7 Working with Scientific Data Form
- Page 588 and 589: 7 Working with Scientific Data Form
- Page 590 and 591: 7 Working with Scientific Data Form
- Page 592 and 593: 7 Working with Scientific Data Form
- Page 594 and 595: 7 Working with Scientific Data Form
- Page 596 and 597: 7 Working with Scientific Data Form
- Page 598 and 599: 7 Working with Scientific Data Form
- Page 600 and 601: 7 Working with Scientific Data Form
- Page 604 and 605: 7 Working with Scientific Data Form
- Page 606 and 607: 7 Working with Scientific Data Form
- Page 608 and 609: 7 Working with Scientific Data Form
- Page 610 and 611: 7 Working with Scientific Data Form
- Page 612 and 613: 7 Working with Scientific Data Form
- Page 614 and 615: 7 Working with Scientific Data Form
- Page 616 and 617: 7 Working with Scientific Data Form
- Page 618 and 619: 7 Working with Scientific Data Form
- Page 620 and 621: 7 Working with Scientific Data Form
- Page 622 and 623: 7 Working with Scientific Data Form
- Page 624 and 625: 7 Working with Scientific Data Form
- Page 626 and 627: 7 Working with Scientific Data Form
- Page 628 and 629: 7 Working with Scientific Data Form
- Page 630 and 631: 7 Working with Scientific Data Form
- Page 632 and 633: 7 Working with Scientific Data Form
- Page 634 and 635: 7 Working with Scientific Data Form
- Page 636 and 637: 8 Error Handling Checking for Error
- Page 638 and 639: 8 Error Handling Handling and Recov
- Page 640 and 641: 8 Error Handling X = A * B catch di
- Page 642 and 643: 8 Error Handling matrixMultiply(A,
- Page 644 and 645: 8 Error Handling Message Identifier
- Page 646 and 647: 8 Error Handling error('msg_id', 'e
- Page 648 and 649: 8 Error Handling Warnings Like erro
- Page 650 and 651: 8 Error Handling Warning Control Th
Hierarchical Data Format (HDF4) Files<br />
HDF Scientific Data Sets (SD)<br />
The HDF scientific data set (SD) is a group of data structures used to store<br />
and describe multidimensional arrays of scientific data. Using the HDF<br />
Import Tool subsetting parameters, you can import a subset of an HDF<br />
scientific data set by specifying the location, range, and number of values to<br />
be read along each dimension.<br />
Subsetting<br />
parameters<br />
Dimension<br />
The subsetting parameters are:<br />
• Start — Specifies the position on the dimension to begin reading. The<br />
default value is 1, which starts reading at the first element of each<br />
dimension. The values specified must not exceed the size of the relevant<br />
dimension of the data set.<br />
• Increment — Specifies the interval between the values to read. The<br />
default value is 1, which reads every element of the data set.<br />
• Length — Specifies how much data to read along each dimension. The<br />
default value is the length of the dimension, which causes all the data to<br />
be read.<br />
HDF Vdata<br />
HDF Vdata data sets provide a framework for storing customized tables.<br />
A Vdata table consists of a collection of records whose values are stored in<br />
7-41