SlideShare a Scribd company logo
The HDF Group

HDF Tools Tutorial

Peter Cao, The HDF Group
Jonathan Kim, The HDF Group

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

1

www.hdfgroup.org
Tools Tutorial

• HDFView
• HDF5 Command-line tools

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

2

www.hdfgroup.org
HDFView

• View file content
• Edit file content
• Show NPOESS/JPSS related features

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

3

www.hdfgroup.org
HDFView

• Download HDF-Java 2.7 beta from
http://www.hdfgroup.org/ftp/HDF5/hdf-java-2.7
• Download example files from
ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/WorkshopXIV/HDF5-Files/

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

4

www.hdfgroup.org
HDFView
• View file content
•
•
•
•
•

Open OMI-Aura_L3.he5
Open groups (try expand all)
Stretch the metadata view for showing metadata
Double click on “ColumnAmountO3” to show data in table
Use “Open As” to show “ColumnAmountO3” in image

• View a subset
• Open weather.h5
• Select from preview image or selection fields

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

5

www.hdfgroup.org
HDFView
• Copy/paste a dataset and a group
• Create a new file: tmp.h5
• Copy/paste “ColumnAmountO3” and show the image from
the new file
• Copy the group “GRIDS” to show the whole group is copied

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

6

www.hdfgroup.org
HDFView
• Create a dataset and add an attribute
•
•
•
•
•

Create /d1 (32-bit float, 720x1440)
Copy “ColumnAmountO3” to /d1
Add attribute “IMAGE_MINMAXRANGE = 123.0,447.0”
Export /d1 to text file
Create /d2 and import d1.txt

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

7

www.hdfgroup.org
HDFView
• NPOESS/JPSS related features
• Object reference
• Region references
• Quality flags

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

8

www.hdfgroup.org
HDFView
• Object reference
1)
2)
3)
4)
5)
6)

Open file: SVI-NPP.h5
Open “VIIRS-I1-SDR_Aggr”
Click on object ID and shows object name
Right mouse to click to open data as image
Open data in table
Select two cells and open them at once

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

9

www.hdfgroup.org
HDFView
• Region references
1)
2)
3)
4)

Open “VIIRS-I1-SDR_Gran”
Right mouse to click to open data as image
Open data in table
Select two cells and open at once

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

10

www.hdfgroup.org
HDFView
• Quality flags
1) Quality flags
•
•
•
•

Land/Water Background
SST Skin Quality
SST Bulk Quality
Aerosol Correction

-- 1-bit
-- 2-bits
-- 2-bits
-- 3-bits

2) Open QF_VIIRSI1SDR_Array
3) Use "Open As" on QF_VIIRSI1SDR_Array
4) Select first bit

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

11

www.hdfgroup.org
HDFView
• Advanced features
1) Import/export images
2) Use HDF-EOS plugin

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

12

www.hdfgroup.org
HDF5 Command-line tools

•
•
•
•
•

September 28-30, 2010

h5ls
h5dump
h5repack
h5diff
h5copy

HDF and HDF-EOS Workshop XIV

13

www.hdfgroup.org
h5ls

• Show file content list
• h5ls ami.h5
• h5ls –r ami.h5

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

14

www.hdfgroup.org
h5dump

•
•
•
•
•

September 28-30, 2010

Structure
Dataset
Binary
XML
Region references

HDF and HDF-EOS Workshop XIV

15

www.hdfgroup.org
h5dump
• Structure
• h5dump -H tools_diff1.h5
• h5dump -H ami.h5

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

16

www.hdfgroup.org
h5dump
• Dataset
• Content
• h5dump -d /EnSight_model/geometry/parts/part_2/quad4 ami.h5

• Information
• h5dump –p –H -d /EnSight_model/geometry/parts/part_2/quad4 ami.h5

• Subset
• H5dump -d /EnSight_model/geometry/parts/part_2/quad4 -s 10,0 -c 20,2 ami.h5
• <-s and –c must be used after –d>

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

17

www.hdfgroup.org
h5dump
• Binary
•

h5dump -d /EnSight_model/geometry/parts/part_2/quad4 -b LE –o out.bin ami.h5

• XML
• h5dump –x ami.h5

• Region
•
•

h5dump -d /Data_Products/VIIRS-I1-SDR/VIIRS-I1-SDR_Gran_0 -s 3 -c 1 SVI-NPP.h5
h5dump –R -d /Data_Products/VIIRS-I1-SDR/VIIRS-I1-SDR_Gran_0 -s 3 -c 1 SVI-NPP.h5

• Packed fields <only 1.8.5+>
September 28-30, 2010

HDF and HDF-EOS Workshop XIV

18

www.hdfgroup.org
h5repack
• Remove inaccessible objects / junk spaces
• Change storage layout
• Apply compression filter
Copies a file to a new file
with different storage layouts
and compression filters

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

19

www.hdfgroup.org
h5repack
• Remove inaccessible objects
• h5dump tools_junk.h5
• h5repack tools_junk.h5 tmp.h5

• Change layout
• h5dump -H tools_bad_layout.h5
• h5repack tools_bad_layout.h5 tmp.h5
• h5repack -l CHUNK=16x16 tools_bad_layout.h5 tmp.h5

• Change compression
• h5repack -f GZIP=6 tmp.h5 tmp2.h5

• More: use latest version, link storage, shared message, and etc

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

20

www.hdfgroup.org
h5diff

Show differences between
two files or two objects

• Dataset

• Whole file

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

21

www.hdfgroup.org
h5diff
• Dataset
• h5diff -r tools_diff1.h5 tools_diff2.h5 /g1/uint8 /x

• Whole file
• Run “h5ls –r tools_diff1.h5” and “h5ls -r tools_diff2.h5”
• h5diff tools_diff1.h5 tools_diff2.h5
• h5diff –v tools_diff1.h5 tools_diff2.h5

• Follow symlinks
• h5diff -r --follow-symlinks tools_diff1.h5 tools_diff2.h5 /sl1

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

22

www.hdfgroup.org
h5copy

• Dataset
• Group

Copies
objects
to files…

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

23

www.hdfgroup.org
h5copy
• Dataset
• h5copy -i tools_input.h5 -o tmp.h5 -s /g1/g2/f -d /float

• Group
• Default: h5copy -i tools_input.h5 -o tmp.h5 -s /g1 -d /g1
• Parent groups: h5copy -p -i tools_input.h5 -o tmp.h5 -s /g1/g2/f -d /g1/g2/f

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

24

www.hdfgroup.org
Thank You!
Questions/comments?

September 28-30, 2010

HDF and HDF-EOS Workshop XIV

25

www.hdfgroup.org

More Related Content

What's hot

MODIS Reprojection Tool
MODIS Reprojection ToolMODIS Reprojection Tool
HDFEOS.org User Analsys, Updates, and Future
HDFEOS.org User Analsys, Updates, and FutureHDFEOS.org User Analsys, Updates, and Future
HDFEOS.org User Analsys, Updates, and Future
The HDF-EOS Tools and Information Center
 
HDF-EOS 2/5 to netCDF Converter
HDF-EOS 2/5 to netCDF ConverterHDF-EOS 2/5 to netCDF Converter
HDF-EOS 2/5 to netCDF Converter
The HDF-EOS Tools and Information Center
 
NASA HDF/HDF-EOS Data for Dummies (and Developers)
NASA HDF/HDF-EOS Data for Dummies (and Developers)NASA HDF/HDF-EOS Data for Dummies (and Developers)
NASA HDF/HDF-EOS Data for Dummies (and Developers)
The HDF-EOS Tools and Information Center
 
Efficiently serving HDF5 via OPeNDAP
Efficiently serving HDF5 via OPeNDAPEfficiently serving HDF5 via OPeNDAP
Efficiently serving HDF5 via OPeNDAP
The HDF-EOS Tools and Information Center
 
Status of HDF-EOS, Related Software and Tools
Status of HDF-EOS, Related Software and ToolsStatus of HDF-EOS, Related Software and Tools
Status of HDF-EOS, Related Software and Tools
The HDF-EOS Tools and Information Center
 
Usage of NCL, IDL, and MATLAB to access NASA HDF4/HDF-EOS2/HDF-EOS5 data
Usage of NCL, IDL, and MATLAB to access NASA HDF4/HDF-EOS2/HDF-EOS5 dataUsage of NCL, IDL, and MATLAB to access NASA HDF4/HDF-EOS2/HDF-EOS5 data
Usage of NCL, IDL, and MATLAB to access NASA HDF4/HDF-EOS2/HDF-EOS5 data
The HDF-EOS Tools and Information Center
 
Introduction to NetCDF-4
Introduction to NetCDF-4Introduction to NetCDF-4
Interoperability with netCDF-4 - Experience with NPP and HDF-EOS5 products
Interoperability with netCDF-4 - Experience with NPP and HDF-EOS5 productsInteroperability with netCDF-4 - Experience with NPP and HDF-EOS5 products
Interoperability with netCDF-4 - Experience with NPP and HDF-EOS5 productsThe HDF-EOS Tools and Information Center
 
MODIS Land and HDF-EOS
MODIS Land and HDF-EOSMODIS Land and HDF-EOS
HDF - Current status and Future Directions
HDF - Current status and Future Directions HDF - Current status and Future Directions
HDF - Current status and Future Directions
The HDF-EOS Tools and Information Center
 
Caching and Buffering in HDF5
Caching and Buffering in HDF5Caching and Buffering in HDF5
Caching and Buffering in HDF5
The HDF-EOS Tools and Information Center
 
HDF Update for DAAC Managers (2017-02-27)
HDF Update for DAAC Managers (2017-02-27)HDF Update for DAAC Managers (2017-02-27)
HDF Update for DAAC Managers (2017-02-27)
The HDF-EOS Tools and Information Center
 
Apache Drill and Unidata THREDDS Data Server for NASA HDF-EOS on S3
Apache Drill and Unidata THREDDS Data Server for NASA HDF-EOS on S3Apache Drill and Unidata THREDDS Data Server for NASA HDF-EOS on S3
Apache Drill and Unidata THREDDS Data Server for NASA HDF-EOS on S3
The HDF-EOS Tools and Information Center
 
MATLAB Modernization on HDF5 1.10
MATLAB Modernization on HDF5 1.10MATLAB Modernization on HDF5 1.10
MATLAB Modernization on HDF5 1.10
The HDF-EOS Tools and Information Center
 

What's hot (20)

Status of HDF-EOS, Related Software and Tools
 Status of HDF-EOS, Related Software and Tools Status of HDF-EOS, Related Software and Tools
Status of HDF-EOS, Related Software and Tools
 
MODIS Reprojection Tool
MODIS Reprojection ToolMODIS Reprojection Tool
MODIS Reprojection Tool
 
HDFEOS.org User Analsys, Updates, and Future
HDFEOS.org User Analsys, Updates, and FutureHDFEOS.org User Analsys, Updates, and Future
HDFEOS.org User Analsys, Updates, and Future
 
HDF-EOS 2/5 to netCDF Converter
HDF-EOS 2/5 to netCDF ConverterHDF-EOS 2/5 to netCDF Converter
HDF-EOS 2/5 to netCDF Converter
 
NASA HDF/HDF-EOS Data for Dummies (and Developers)
NASA HDF/HDF-EOS Data for Dummies (and Developers)NASA HDF/HDF-EOS Data for Dummies (and Developers)
NASA HDF/HDF-EOS Data for Dummies (and Developers)
 
Efficiently serving HDF5 via OPeNDAP
Efficiently serving HDF5 via OPeNDAPEfficiently serving HDF5 via OPeNDAP
Efficiently serving HDF5 via OPeNDAP
 
Status of HDF-EOS, Related Software and Tools
Status of HDF-EOS, Related Software and ToolsStatus of HDF-EOS, Related Software and Tools
Status of HDF-EOS, Related Software and Tools
 
Usage of NCL, IDL, and MATLAB to access NASA HDF4/HDF-EOS2/HDF-EOS5 data
Usage of NCL, IDL, and MATLAB to access NASA HDF4/HDF-EOS2/HDF-EOS5 dataUsage of NCL, IDL, and MATLAB to access NASA HDF4/HDF-EOS2/HDF-EOS5 data
Usage of NCL, IDL, and MATLAB to access NASA HDF4/HDF-EOS2/HDF-EOS5 data
 
Introduction to NetCDF-4
Introduction to NetCDF-4Introduction to NetCDF-4
Introduction to NetCDF-4
 
Interoperability with netCDF-4 - Experience with NPP and HDF-EOS5 products
Interoperability with netCDF-4 - Experience with NPP and HDF-EOS5 productsInteroperability with netCDF-4 - Experience with NPP and HDF-EOS5 products
Interoperability with netCDF-4 - Experience with NPP and HDF-EOS5 products
 
MODIS Land and HDF-EOS
MODIS Land and HDF-EOSMODIS Land and HDF-EOS
MODIS Land and HDF-EOS
 
Bridging ICESat and ICESat-2 Standard Data Products
Bridging ICESat and ICESat-2 Standard Data ProductsBridging ICESat and ICESat-2 Standard Data Products
Bridging ICESat and ICESat-2 Standard Data Products
 
HDF - Current status and Future Directions
HDF - Current status and Future Directions HDF - Current status and Future Directions
HDF - Current status and Future Directions
 
Caching and Buffering in HDF5
Caching and Buffering in HDF5Caching and Buffering in HDF5
Caching and Buffering in HDF5
 
HDF & HDF-EOS Data & Support at NSIDC
HDF & HDF-EOS Data & Support at NSIDCHDF & HDF-EOS Data & Support at NSIDC
HDF & HDF-EOS Data & Support at NSIDC
 
HDF Update for DAAC Managers (2017-02-27)
HDF Update for DAAC Managers (2017-02-27)HDF Update for DAAC Managers (2017-02-27)
HDF Update for DAAC Managers (2017-02-27)
 
Using IDL with Suomi NPP VIIRS Data
Using IDL with Suomi NPP VIIRS DataUsing IDL with Suomi NPP VIIRS Data
Using IDL with Suomi NPP VIIRS Data
 
Apache Drill and Unidata THREDDS Data Server for NASA HDF-EOS on S3
Apache Drill and Unidata THREDDS Data Server for NASA HDF-EOS on S3Apache Drill and Unidata THREDDS Data Server for NASA HDF-EOS on S3
Apache Drill and Unidata THREDDS Data Server for NASA HDF-EOS on S3
 
HDF Group Support for NPP/NPOESS/JPSS
HDF Group Support for NPP/NPOESS/JPSSHDF Group Support for NPP/NPOESS/JPSS
HDF Group Support for NPP/NPOESS/JPSS
 
MATLAB Modernization on HDF5 1.10
MATLAB Modernization on HDF5 1.10MATLAB Modernization on HDF5 1.10
MATLAB Modernization on HDF5 1.10
 

Similar to HDF Tools Tutorial

Improving long-term preservation of EOS data by independently mapping HDF4 da...
Improving long-term preservation of EOS data by independently mapping HDF4 da...Improving long-term preservation of EOS data by independently mapping HDF4 da...
Improving long-term preservation of EOS data by independently mapping HDF4 da...The HDF-EOS Tools and Information Center
 
Introduction to HDF5
Introduction to HDF5Introduction to HDF5
The New HDF-EOS WebSite - How it can help you
The New HDF-EOS WebSite - How it can help youThe New HDF-EOS WebSite - How it can help you
The New HDF-EOS WebSite - How it can help you
The HDF-EOS Tools and Information Center
 
Hdf5 intro
Hdf5 introHdf5 intro
Hdf5 intro
Smith Kim
 
HDF5 Tools
HDF5 ToolsHDF5 Tools
HDF Status and Development
HDF Status and DevelopmentHDF Status and Development
HDF Status and Development
The HDF-EOS Tools and Information Center
 
HDF OPeNDAP project update and demo
HDF OPeNDAP project update and demoHDF OPeNDAP project update and demo
HDF OPeNDAP project update and demo
The HDF-EOS Tools and Information Center
 
Introduction to HDF5
Introduction to HDF5Introduction to HDF5
Support for NPP/NPOESS by The HDF Group
Support for NPP/NPOESS by The HDF GroupSupport for NPP/NPOESS by The HDF Group
Support for NPP/NPOESS by The HDF Group
The HDF-EOS Tools and Information Center
 
Migrating from HDF5 1.6 to 1.8
Migrating from HDF5 1.6 to 1.8Migrating from HDF5 1.6 to 1.8
Migrating from HDF5 1.6 to 1.8
The HDF-EOS Tools and Information Center
 
HDF5 Tools Updates
HDF5 Tools UpdatesHDF5 Tools Updates
HDF Updae
HDF UpdaeHDF Updae
HDF Update
HDF UpdateHDF Update
HDF5 Tools Update
HDF5 Tools UpdateHDF5 Tools Update
Ensuring Long Term Access to Remotely Sensed HDF4 Data with Layout Maps
Ensuring Long Term Access to Remotely Sensed HDF4 Data with Layout MapsEnsuring Long Term Access to Remotely Sensed HDF4 Data with Layout Maps
Ensuring Long Term Access to Remotely Sensed HDF4 Data with Layout Maps
The HDF-EOS Tools and Information Center
 
HDF-EOS Subsetting: HEW and other tools
HDF-EOS Subsetting: HEW and other toolsHDF-EOS Subsetting: HEW and other tools
HDF-EOS Subsetting: HEW and other tools
The HDF-EOS Tools and Information Center
 
Introduction to HDF5
Introduction to HDF5Introduction to HDF5

Similar to HDF Tools Tutorial (20)

HDF5 Tools Updates
HDF5 Tools UpdatesHDF5 Tools Updates
HDF5 Tools Updates
 
Support for NPP/NPOESS/JPSS by The HDF Group
 Support for NPP/NPOESS/JPSS by The HDF Group Support for NPP/NPOESS/JPSS by The HDF Group
Support for NPP/NPOESS/JPSS by The HDF Group
 
Improving long-term preservation of EOS data by independently mapping HDF4 da...
Improving long-term preservation of EOS data by independently mapping HDF4 da...Improving long-term preservation of EOS data by independently mapping HDF4 da...
Improving long-term preservation of EOS data by independently mapping HDF4 da...
 
HDF Update
HDF UpdateHDF Update
HDF Update
 
Introduction to HDF5
Introduction to HDF5Introduction to HDF5
Introduction to HDF5
 
The New HDF-EOS WebSite - How it can help you
The New HDF-EOS WebSite - How it can help youThe New HDF-EOS WebSite - How it can help you
The New HDF-EOS WebSite - How it can help you
 
Hdf5 intro
Hdf5 introHdf5 intro
Hdf5 intro
 
HDF5 Tools
HDF5 ToolsHDF5 Tools
HDF5 Tools
 
HDF Status and Development
HDF Status and DevelopmentHDF Status and Development
HDF Status and Development
 
HDF OPeNDAP project update and demo
HDF OPeNDAP project update and demoHDF OPeNDAP project update and demo
HDF OPeNDAP project update and demo
 
Introduction to HDF5
Introduction to HDF5Introduction to HDF5
Introduction to HDF5
 
Support for NPP/NPOESS by The HDF Group
Support for NPP/NPOESS by The HDF GroupSupport for NPP/NPOESS by The HDF Group
Support for NPP/NPOESS by The HDF Group
 
Migrating from HDF5 1.6 to 1.8
Migrating from HDF5 1.6 to 1.8Migrating from HDF5 1.6 to 1.8
Migrating from HDF5 1.6 to 1.8
 
HDF5 Tools Updates
HDF5 Tools UpdatesHDF5 Tools Updates
HDF5 Tools Updates
 
HDF Updae
HDF UpdaeHDF Updae
HDF Updae
 
HDF Update
HDF UpdateHDF Update
HDF Update
 
HDF5 Tools Update
HDF5 Tools UpdateHDF5 Tools Update
HDF5 Tools Update
 
Ensuring Long Term Access to Remotely Sensed HDF4 Data with Layout Maps
Ensuring Long Term Access to Remotely Sensed HDF4 Data with Layout MapsEnsuring Long Term Access to Remotely Sensed HDF4 Data with Layout Maps
Ensuring Long Term Access to Remotely Sensed HDF4 Data with Layout Maps
 
HDF-EOS Subsetting: HEW and other tools
HDF-EOS Subsetting: HEW and other toolsHDF-EOS Subsetting: HEW and other tools
HDF-EOS Subsetting: HEW and other tools
 
Introduction to HDF5
Introduction to HDF5Introduction to HDF5
Introduction to HDF5
 

More from The HDF-EOS Tools and Information Center

Cloud-Optimized HDF5 Files
Cloud-Optimized HDF5 FilesCloud-Optimized HDF5 Files
Cloud-Optimized HDF5 Files
The HDF-EOS Tools and Information Center
 
Accessing HDF5 data in the cloud with HSDS
Accessing HDF5 data in the cloud with HSDSAccessing HDF5 data in the cloud with HSDS
Accessing HDF5 data in the cloud with HSDS
The HDF-EOS Tools and Information Center
 
The State of HDF
The State of HDFThe State of HDF
Highly Scalable Data Service (HSDS) Performance Features
Highly Scalable Data Service (HSDS) Performance FeaturesHighly Scalable Data Service (HSDS) Performance Features
Highly Scalable Data Service (HSDS) Performance Features
The HDF-EOS Tools and Information Center
 
Creating Cloud-Optimized HDF5 Files
Creating Cloud-Optimized HDF5 FilesCreating Cloud-Optimized HDF5 Files
Creating Cloud-Optimized HDF5 Files
The HDF-EOS Tools and Information Center
 
HDF5 OPeNDAP Handler Updates, and Performance Discussion
HDF5 OPeNDAP Handler Updates, and Performance DiscussionHDF5 OPeNDAP Handler Updates, and Performance Discussion
HDF5 OPeNDAP Handler Updates, and Performance Discussion
The HDF-EOS Tools and Information Center
 
Hyrax: Serving Data from S3
Hyrax: Serving Data from S3Hyrax: Serving Data from S3
Hyrax: Serving Data from S3
The HDF-EOS Tools and Information Center
 
Accessing Cloud Data and Services Using EDL, Pydap, MATLAB
Accessing Cloud Data and Services Using EDL, Pydap, MATLABAccessing Cloud Data and Services Using EDL, Pydap, MATLAB
Accessing Cloud Data and Services Using EDL, Pydap, MATLAB
The HDF-EOS Tools and Information Center
 
HDF - Current status and Future Directions
HDF - Current status and Future DirectionsHDF - Current status and Future Directions
HDF - Current status and Future Directions
The HDF-EOS Tools and Information Center
 
H5Coro: The Cloud-Optimized Read-Only Library
H5Coro: The Cloud-Optimized Read-Only LibraryH5Coro: The Cloud-Optimized Read-Only Library
H5Coro: The Cloud-Optimized Read-Only Library
The HDF-EOS Tools and Information Center
 
HDF for the Cloud - Serverless HDF
HDF for the Cloud - Serverless HDFHDF for the Cloud - Serverless HDF
HDF for the Cloud - Serverless HDF
The HDF-EOS Tools and Information Center
 
HDF5 <-> Zarr
HDF5 <-> ZarrHDF5 <-> Zarr
HDF for the Cloud - New HDF Server Features
HDF for the Cloud - New HDF Server FeaturesHDF for the Cloud - New HDF Server Features
HDF for the Cloud - New HDF Server Features
The HDF-EOS Tools and Information Center
 
STARE-PODS: A Versatile Data Store Leveraging the HDF Virtual Object Layer fo...
STARE-PODS: A Versatile Data Store Leveraging the HDF Virtual Object Layer fo...STARE-PODS: A Versatile Data Store Leveraging the HDF Virtual Object Layer fo...
STARE-PODS: A Versatile Data Store Leveraging the HDF Virtual Object Layer fo...
The HDF-EOS Tools and Information Center
 
HDF5 and Ecosystem: What Is New?
HDF5 and Ecosystem: What Is New?HDF5 and Ecosystem: What Is New?
HDF5 and Ecosystem: What Is New?
The HDF-EOS Tools and Information Center
 
HDF5 Roadmap 2019-2020
HDF5 Roadmap 2019-2020HDF5 Roadmap 2019-2020
Leveraging the Cloud for HDF Software Testing
Leveraging the Cloud for HDF Software TestingLeveraging the Cloud for HDF Software Testing
Leveraging the Cloud for HDF Software Testing
The HDF-EOS Tools and Information Center
 
Google Colaboratory for HDF-EOS
Google Colaboratory for HDF-EOSGoogle Colaboratory for HDF-EOS
Google Colaboratory for HDF-EOS
The HDF-EOS Tools and Information Center
 
Parallel Computing with HDF Server
Parallel Computing with HDF ServerParallel Computing with HDF Server
Parallel Computing with HDF Server
The HDF-EOS Tools and Information Center
 
HDF-EOS Data Product Developer's Guide
HDF-EOS Data Product Developer's GuideHDF-EOS Data Product Developer's Guide
HDF-EOS Data Product Developer's Guide
The HDF-EOS Tools and Information Center
 

More from The HDF-EOS Tools and Information Center (20)

Cloud-Optimized HDF5 Files
Cloud-Optimized HDF5 FilesCloud-Optimized HDF5 Files
Cloud-Optimized HDF5 Files
 
Accessing HDF5 data in the cloud with HSDS
Accessing HDF5 data in the cloud with HSDSAccessing HDF5 data in the cloud with HSDS
Accessing HDF5 data in the cloud with HSDS
 
The State of HDF
The State of HDFThe State of HDF
The State of HDF
 
Highly Scalable Data Service (HSDS) Performance Features
Highly Scalable Data Service (HSDS) Performance FeaturesHighly Scalable Data Service (HSDS) Performance Features
Highly Scalable Data Service (HSDS) Performance Features
 
Creating Cloud-Optimized HDF5 Files
Creating Cloud-Optimized HDF5 FilesCreating Cloud-Optimized HDF5 Files
Creating Cloud-Optimized HDF5 Files
 
HDF5 OPeNDAP Handler Updates, and Performance Discussion
HDF5 OPeNDAP Handler Updates, and Performance DiscussionHDF5 OPeNDAP Handler Updates, and Performance Discussion
HDF5 OPeNDAP Handler Updates, and Performance Discussion
 
Hyrax: Serving Data from S3
Hyrax: Serving Data from S3Hyrax: Serving Data from S3
Hyrax: Serving Data from S3
 
Accessing Cloud Data and Services Using EDL, Pydap, MATLAB
Accessing Cloud Data and Services Using EDL, Pydap, MATLABAccessing Cloud Data and Services Using EDL, Pydap, MATLAB
Accessing Cloud Data and Services Using EDL, Pydap, MATLAB
 
HDF - Current status and Future Directions
HDF - Current status and Future DirectionsHDF - Current status and Future Directions
HDF - Current status and Future Directions
 
H5Coro: The Cloud-Optimized Read-Only Library
H5Coro: The Cloud-Optimized Read-Only LibraryH5Coro: The Cloud-Optimized Read-Only Library
H5Coro: The Cloud-Optimized Read-Only Library
 
HDF for the Cloud - Serverless HDF
HDF for the Cloud - Serverless HDFHDF for the Cloud - Serverless HDF
HDF for the Cloud - Serverless HDF
 
HDF5 <-> Zarr
HDF5 <-> ZarrHDF5 <-> Zarr
HDF5 <-> Zarr
 
HDF for the Cloud - New HDF Server Features
HDF for the Cloud - New HDF Server FeaturesHDF for the Cloud - New HDF Server Features
HDF for the Cloud - New HDF Server Features
 
STARE-PODS: A Versatile Data Store Leveraging the HDF Virtual Object Layer fo...
STARE-PODS: A Versatile Data Store Leveraging the HDF Virtual Object Layer fo...STARE-PODS: A Versatile Data Store Leveraging the HDF Virtual Object Layer fo...
STARE-PODS: A Versatile Data Store Leveraging the HDF Virtual Object Layer fo...
 
HDF5 and Ecosystem: What Is New?
HDF5 and Ecosystem: What Is New?HDF5 and Ecosystem: What Is New?
HDF5 and Ecosystem: What Is New?
 
HDF5 Roadmap 2019-2020
HDF5 Roadmap 2019-2020HDF5 Roadmap 2019-2020
HDF5 Roadmap 2019-2020
 
Leveraging the Cloud for HDF Software Testing
Leveraging the Cloud for HDF Software TestingLeveraging the Cloud for HDF Software Testing
Leveraging the Cloud for HDF Software Testing
 
Google Colaboratory for HDF-EOS
Google Colaboratory for HDF-EOSGoogle Colaboratory for HDF-EOS
Google Colaboratory for HDF-EOS
 
Parallel Computing with HDF Server
Parallel Computing with HDF ServerParallel Computing with HDF Server
Parallel Computing with HDF Server
 
HDF-EOS Data Product Developer's Guide
HDF-EOS Data Product Developer's GuideHDF-EOS Data Product Developer's Guide
HDF-EOS Data Product Developer's Guide
 

Recently uploaded

The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Enhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZEnhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZ
Globus
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 

Recently uploaded (20)

The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Enhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZEnhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZ
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 

HDF Tools Tutorial

  • 1. The HDF Group HDF Tools Tutorial Peter Cao, The HDF Group Jonathan Kim, The HDF Group September 28-30, 2010 HDF and HDF-EOS Workshop XIV 1 www.hdfgroup.org
  • 2. Tools Tutorial • HDFView • HDF5 Command-line tools September 28-30, 2010 HDF and HDF-EOS Workshop XIV 2 www.hdfgroup.org
  • 3. HDFView • View file content • Edit file content • Show NPOESS/JPSS related features September 28-30, 2010 HDF and HDF-EOS Workshop XIV 3 www.hdfgroup.org
  • 4. HDFView • Download HDF-Java 2.7 beta from http://www.hdfgroup.org/ftp/HDF5/hdf-java-2.7 • Download example files from ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/WorkshopXIV/HDF5-Files/ September 28-30, 2010 HDF and HDF-EOS Workshop XIV 4 www.hdfgroup.org
  • 5. HDFView • View file content • • • • • Open OMI-Aura_L3.he5 Open groups (try expand all) Stretch the metadata view for showing metadata Double click on “ColumnAmountO3” to show data in table Use “Open As” to show “ColumnAmountO3” in image • View a subset • Open weather.h5 • Select from preview image or selection fields September 28-30, 2010 HDF and HDF-EOS Workshop XIV 5 www.hdfgroup.org
  • 6. HDFView • Copy/paste a dataset and a group • Create a new file: tmp.h5 • Copy/paste “ColumnAmountO3” and show the image from the new file • Copy the group “GRIDS” to show the whole group is copied September 28-30, 2010 HDF and HDF-EOS Workshop XIV 6 www.hdfgroup.org
  • 7. HDFView • Create a dataset and add an attribute • • • • • Create /d1 (32-bit float, 720x1440) Copy “ColumnAmountO3” to /d1 Add attribute “IMAGE_MINMAXRANGE = 123.0,447.0” Export /d1 to text file Create /d2 and import d1.txt September 28-30, 2010 HDF and HDF-EOS Workshop XIV 7 www.hdfgroup.org
  • 8. HDFView • NPOESS/JPSS related features • Object reference • Region references • Quality flags September 28-30, 2010 HDF and HDF-EOS Workshop XIV 8 www.hdfgroup.org
  • 9. HDFView • Object reference 1) 2) 3) 4) 5) 6) Open file: SVI-NPP.h5 Open “VIIRS-I1-SDR_Aggr” Click on object ID and shows object name Right mouse to click to open data as image Open data in table Select two cells and open them at once September 28-30, 2010 HDF and HDF-EOS Workshop XIV 9 www.hdfgroup.org
  • 10. HDFView • Region references 1) 2) 3) 4) Open “VIIRS-I1-SDR_Gran” Right mouse to click to open data as image Open data in table Select two cells and open at once September 28-30, 2010 HDF and HDF-EOS Workshop XIV 10 www.hdfgroup.org
  • 11. HDFView • Quality flags 1) Quality flags • • • • Land/Water Background SST Skin Quality SST Bulk Quality Aerosol Correction -- 1-bit -- 2-bits -- 2-bits -- 3-bits 2) Open QF_VIIRSI1SDR_Array 3) Use "Open As" on QF_VIIRSI1SDR_Array 4) Select first bit September 28-30, 2010 HDF and HDF-EOS Workshop XIV 11 www.hdfgroup.org
  • 12. HDFView • Advanced features 1) Import/export images 2) Use HDF-EOS plugin September 28-30, 2010 HDF and HDF-EOS Workshop XIV 12 www.hdfgroup.org
  • 13. HDF5 Command-line tools • • • • • September 28-30, 2010 h5ls h5dump h5repack h5diff h5copy HDF and HDF-EOS Workshop XIV 13 www.hdfgroup.org
  • 14. h5ls • Show file content list • h5ls ami.h5 • h5ls –r ami.h5 September 28-30, 2010 HDF and HDF-EOS Workshop XIV 14 www.hdfgroup.org
  • 15. h5dump • • • • • September 28-30, 2010 Structure Dataset Binary XML Region references HDF and HDF-EOS Workshop XIV 15 www.hdfgroup.org
  • 16. h5dump • Structure • h5dump -H tools_diff1.h5 • h5dump -H ami.h5 September 28-30, 2010 HDF and HDF-EOS Workshop XIV 16 www.hdfgroup.org
  • 17. h5dump • Dataset • Content • h5dump -d /EnSight_model/geometry/parts/part_2/quad4 ami.h5 • Information • h5dump –p –H -d /EnSight_model/geometry/parts/part_2/quad4 ami.h5 • Subset • H5dump -d /EnSight_model/geometry/parts/part_2/quad4 -s 10,0 -c 20,2 ami.h5 • <-s and –c must be used after –d> September 28-30, 2010 HDF and HDF-EOS Workshop XIV 17 www.hdfgroup.org
  • 18. h5dump • Binary • h5dump -d /EnSight_model/geometry/parts/part_2/quad4 -b LE –o out.bin ami.h5 • XML • h5dump –x ami.h5 • Region • • h5dump -d /Data_Products/VIIRS-I1-SDR/VIIRS-I1-SDR_Gran_0 -s 3 -c 1 SVI-NPP.h5 h5dump –R -d /Data_Products/VIIRS-I1-SDR/VIIRS-I1-SDR_Gran_0 -s 3 -c 1 SVI-NPP.h5 • Packed fields <only 1.8.5+> September 28-30, 2010 HDF and HDF-EOS Workshop XIV 18 www.hdfgroup.org
  • 19. h5repack • Remove inaccessible objects / junk spaces • Change storage layout • Apply compression filter Copies a file to a new file with different storage layouts and compression filters September 28-30, 2010 HDF and HDF-EOS Workshop XIV 19 www.hdfgroup.org
  • 20. h5repack • Remove inaccessible objects • h5dump tools_junk.h5 • h5repack tools_junk.h5 tmp.h5 • Change layout • h5dump -H tools_bad_layout.h5 • h5repack tools_bad_layout.h5 tmp.h5 • h5repack -l CHUNK=16x16 tools_bad_layout.h5 tmp.h5 • Change compression • h5repack -f GZIP=6 tmp.h5 tmp2.h5 • More: use latest version, link storage, shared message, and etc September 28-30, 2010 HDF and HDF-EOS Workshop XIV 20 www.hdfgroup.org
  • 21. h5diff Show differences between two files or two objects • Dataset • Whole file September 28-30, 2010 HDF and HDF-EOS Workshop XIV 21 www.hdfgroup.org
  • 22. h5diff • Dataset • h5diff -r tools_diff1.h5 tools_diff2.h5 /g1/uint8 /x • Whole file • Run “h5ls –r tools_diff1.h5” and “h5ls -r tools_diff2.h5” • h5diff tools_diff1.h5 tools_diff2.h5 • h5diff –v tools_diff1.h5 tools_diff2.h5 • Follow symlinks • h5diff -r --follow-symlinks tools_diff1.h5 tools_diff2.h5 /sl1 September 28-30, 2010 HDF and HDF-EOS Workshop XIV 22 www.hdfgroup.org
  • 23. h5copy • Dataset • Group Copies objects to files… September 28-30, 2010 HDF and HDF-EOS Workshop XIV 23 www.hdfgroup.org
  • 24. h5copy • Dataset • h5copy -i tools_input.h5 -o tmp.h5 -s /g1/g2/f -d /float • Group • Default: h5copy -i tools_input.h5 -o tmp.h5 -s /g1 -d /g1 • Parent groups: h5copy -p -i tools_input.h5 -o tmp.h5 -s /g1/g2/f -d /g1/g2/f September 28-30, 2010 HDF and HDF-EOS Workshop XIV 24 www.hdfgroup.org
  • 25. Thank You! Questions/comments? September 28-30, 2010 HDF and HDF-EOS Workshop XIV 25 www.hdfgroup.org