KEMBAR78
HDF Explorer | PDF
HDF Explorer
HDF-EOS Workshop IX
San Francisco, CA
November 30 - December 2, 2005
Pedro Vicente Nunes
Space Research Software Inc.
Urbana, IL

HDF
HDF Explorer
• Version 1.4 just released
• New features: support for HDF5 Dimension
Scales

-2-

HDF
Dimension Scales : HDF5 API
C code

• Example: I have an array of 12 elements
organized in a 3 X 4 matrix

-3-

HDF
Dimension Scales : HDF5 API
C code
• But the spatial phenomenon I am trying to model
has different width and height definitions

X

Y

-4-

HDF
Dimension Scales : HDF5 API
C code
My array data of 12 elements:
int dset_data[12] = {1,2,3,4,5,6,7,8,9,10,11,12};
My X axis spatial domain:
int X[4] = {10,20,50,100};
My Y axis spatial domain:
int Y[3] = {10,20,30};
-5-

HDF
Dimension Scales : HDF5 API
C code

Save my arrays as HDF5 datasets with the High
Level HDF5 API function
H5LTmake_dataset_int
(fid,“My data",rank,dims, dset_data);

-6-

HDF
Dimension Scales : HDF5 API
C code
for the X and Y arrays

H5LTmake_dataset_int
(fid,“X axis",rankx,dimsx, X);
H5LTmake_dataset_int
(fid,“Y axis",ranky,dimsy, Y);
-7-

HDF
Dimension Scales : HDF5 API
Call H5DSattach_scale function

/* get the DS dataset id and dataset*/
did = H5Dopen(fid,” My data”);
dsid = H5Dopen(fid,” X axis”);
/* attach the “ X axis” dimension scale to
“My data" at dimension 0 */
H5DSattach_scale(did,dsid,DIM0);
-8-

HDF
Dimension Scales : HDF5 API
Call H5DSattach_scale function

/* get the DS dataset id and dataset*/
did = H5Dopen(fid,” My data”);
dsid = H5Dopen(fid,” X axis”);
/* attach the “ X axis” dimension scale to
“My data" at dimension 0 */
H5DSattach_scale(did,dsid,DIM0);
-9-

HDF
HDF Explorer: Tree View

- 10 -

HDF
HDF Explorer: Grid View

- 11 -

HDF
HDF Explorer: Map View

- 12 -

HDF

HDF Explorer

  • 1.
    HDF Explorer HDF-EOS WorkshopIX San Francisco, CA November 30 - December 2, 2005 Pedro Vicente Nunes Space Research Software Inc. Urbana, IL HDF
  • 2.
    HDF Explorer • Version1.4 just released • New features: support for HDF5 Dimension Scales -2- HDF
  • 3.
    Dimension Scales :HDF5 API C code • Example: I have an array of 12 elements organized in a 3 X 4 matrix -3- HDF
  • 4.
    Dimension Scales :HDF5 API C code • But the spatial phenomenon I am trying to model has different width and height definitions X Y -4- HDF
  • 5.
    Dimension Scales :HDF5 API C code My array data of 12 elements: int dset_data[12] = {1,2,3,4,5,6,7,8,9,10,11,12}; My X axis spatial domain: int X[4] = {10,20,50,100}; My Y axis spatial domain: int Y[3] = {10,20,30}; -5- HDF
  • 6.
    Dimension Scales :HDF5 API C code Save my arrays as HDF5 datasets with the High Level HDF5 API function H5LTmake_dataset_int (fid,“My data",rank,dims, dset_data); -6- HDF
  • 7.
    Dimension Scales :HDF5 API C code for the X and Y arrays H5LTmake_dataset_int (fid,“X axis",rankx,dimsx, X); H5LTmake_dataset_int (fid,“Y axis",ranky,dimsy, Y); -7- HDF
  • 8.
    Dimension Scales :HDF5 API Call H5DSattach_scale function /* get the DS dataset id and dataset*/ did = H5Dopen(fid,” My data”); dsid = H5Dopen(fid,” X axis”); /* attach the “ X axis” dimension scale to “My data" at dimension 0 */ H5DSattach_scale(did,dsid,DIM0); -8- HDF
  • 9.
    Dimension Scales :HDF5 API Call H5DSattach_scale function /* get the DS dataset id and dataset*/ did = H5Dopen(fid,” My data”); dsid = H5Dopen(fid,” X axis”); /* attach the “ X axis” dimension scale to “My data" at dimension 0 */ H5DSattach_scale(did,dsid,DIM0); -9- HDF
  • 10.
    HDF Explorer: TreeView - 10 - HDF
  • 11.
    HDF Explorer: GridView - 11 - HDF
  • 12.
    HDF Explorer: MapView - 12 - HDF