Comprehensive Examples

This page provides comprehensive examples on how to access and visualize various NASA HDF/HDF-EOS files using Python (pyhdf/h5py), NCL, MATLAB®, and IDL®. Other tools and programming languages examples can be found here.

Please read this special note first before you proceed further.

You can find examples quickly using the search box below. Please add keyword 'zoo' first to limit the search within this Comprehensive Examples page. Then, type the first few characters from the NASA HDF/HDF-EOS file name such as MOD06. Finally, you can limit the search by providing one of programming language keywords: Ptyhon, NCL, IDL, or MATLAB.

Search Examples by Product Name

For a list of examples for the different data centers, click on the product name in the table below.

NASA Data Centers Product Examples using different tools
GES DISC AIRS TRMM MERRA TOMS OMI MLS HIRDLS BUV SWDB GSSTF GOSAT/ACOS OCO-2 GPM
LAADS
LAADS Product Type File Codes Plots CMR
MOD
more examples
Swath MOD021KM.A2023223.0455.061.2023223132259.hdf
MOD03.A2023223.0455.061.2023223112127.hdf (m)
Python NCL MATLAB IDL Python NCL MATLAB IDL MOD021KM
MOD05_L2.A2010001.0000.006.2015041171924.hdf
MOD03.A2010001.0000.006.2012280165535.hdf (m)
Python NCL MATLAB IDL Python NCL MATLAB IDL MOD05_L2_6
MOD06_L2.A2010001.0000.006.2015041180150.hdf
MOD03.A2010001.0000.006.2012280165535.hdf (m)
Python NCL MATLAB IDL Python NCL MATLAB IDL MOD06_L2_6
MOD07_L2.A2009346.2355.006.2015039005008.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL MOD07_L2_6
MODATML2.A2018046.1040.006.2018046193653.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL MODATML2_6
Grid MOD08_D3.A2010001.006.2015041224130.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL MOD08_D3_6
MYD
more examples
Swath MYD021KM.A2002226.0000.006.2012033082925.hdf
MYD03.A2002226.0000.006.2012033081943.hdf (m)
Python NCL MATLAB IDL Python NCL MATLAB IDL MYD021KM_6
MYD02HKM.A2015125.0115.006.2015125153005.hdf
lat_MYD02HKM.A2015125.0115.006.2015125153005.output
lon_MYD02HKM.A2015125.0115.006.2015125153005.output
Python NCL MATLAB IDL Python NCL MATLAB IDL MYD02HKM_6
MYD07_L2.A2002185.0000.006.2014190202043.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL MYD07_L2_6
Grid MYD08_D3.A2009001.006.2015088160849.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL MYD08_D3_6
VIIRS
more examples
Swath AERDT_L2_VIIRS_SNPP.A2021050.1218.011.nrt.nc Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z) AERDT_L2_VIIRS_SNPP_NRT
VNP09_NRT.A2018064.0524.001.hdf
VNP03IMG_NRT.A2018064.0524.001.nc(m)
Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z) VNP09_NRT_1
VNP14IMG_NRT.A2018064.1200.001.nc Python NCL MATLAB IDL Python NCL MATLAB IDL VNP14IMG_NRT_1
Grid VNP46A1.A2020302.h07v07.001.2020303075447.h5 Python NCL MATLAB IDL Python NCL MATLAB IDL VNP46A1
LP DAAC AST MCD MOD MYD VIP WELD GED VIIRS GEOLST
LaRC CALIPSO CATS CERES DSCOVR MISR MOPITT POAM3 SAGE III TES
NSIDC AMSR_E AMSR_U2 MODIS NISE ICESat/GLAS SMAP
PO.DAAC SMAP SeaWinds QuikSCAT Aquarius OMG ECCO MODIS
Ocean Biology Processing Group OCTS SeaWiFS CZCS MODISA MODIST VIIRS
GHRC LIS
ICESat-2 ATL
ASF SMAP ARIA
Table 1. Sample Data Files and Code Examples

We also provide examples for other data centers that produce HDF files.

Other Data Centers Product Examples using different tools
CloudSAT Data Processing Center CloudSAT
MODIS/ASTER Airborne Simulator MASTER
Ocean Productivity Net Primary Production
Table 3. Sample Data Files and Code Examples from Other Data Centers

We also extracted and documented information for sample HDF-EOS2/HDF4 and HDF-EOS5/HDF5 files that are useful to determine the EOS contents stored in the sample files. Please click here for HDF-EOS2/HDF4 and here for HDF-EOS5/HDF5 to read comprehensive description and retrieve sample files.


Last modified: 08/16/2023
About Us | Contact Info | Archive Info | Disclaimer
Sponsored by Subcontract number 4400528183 under Raytheon Contract number NNG15HZ39C, funded by NASA / Maintained by The HDF Group