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 MOD MYD VIIRS
LP DAAC AST MCD MOD MYD VIP WELD GED VIIRS GEOLST
LaRC
LaRC Product Type File Codes Plots CMR
CALIPSO
more examples
Swath CAL_LID_L2_PSCMask-Standard-V2-00.2021-03-26T00-00-00ZN.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL CAL_LID_L2_PSCMask-Standard-V2-00
Python(v) NCL(v) MATLAB(v) IDL(v) Python(v) NCL(v) MATLAB(v) IDL(v)
CAL_LID_L2_VFM-ValStage1-V3-41.2021-11-29T23-32-39ZD.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL CAL_LID_L2_VFM-ValStage1-V3-41
Python(v) NCL(v) MATLAB(v) IDL(v) Python(v) NCL(v) MATLAB(v) IDL(v)
CATS Swath CATS-ISS_L2O_D-M7.2-V2-01_05kmLay.2017-05-01T00-47-40T01-28-41UTC.hdf5 Python NCL MATLAB IDL Python NCL MATLAB IDL CATS-ISS_L2O_D-M7.2-V2-01_05kmLay_V2-01
Python(v) NCL(v) MATLAB(v) IDL(v) Python(v) NCL(v) MATLAB(v) IDL(v)
CERES
more examples
Swath CER_BDS_NPP-FM5_Edition2_200211.20220201.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL CER_BDS_NPP-FM5
CER_SSF_NOAA20-FM6-VIIRS_Edition1B_100102.2022080123.nc Python NCL MATLAB IDL Python NCL MATLAB IDL CER_SSF_NOAA20-FM6-VIIRS_Edition1B
CER_SSF_NPP-FM5-VIIRS_Edition2A_200203.2022013123.nc Python NCL MATLAB IDL Python NCL MATLAB IDL CER_SSF_NPP-FM5-VIIRS_Edition2A
Grid CERES_EBAF-TOA_Edition4.1_200003-202106.nc Python NCL MATLAB IDL Python NCL MATLAB IDL CERES_EBAF-TOA
CER_ES4_NOAA20-FM6_Edition1_101109.202201.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL CER_ES4_NOAA20-FM6
CER_ES4_NPP-FM5_Edition2_202209.201909.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL CER_ES4_NPP-FM5
CER_ES4_TRMM-PFM_Edition2_019018.199808.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL CER_ES4_TRMM-PFM_Edition2
CER_ES8_NOAA20-FM6_Edition1_101109.20220201.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL CER_ES8_NOAA20-FM6
CER_ES8_NPP-FM5_Edition2_203209.20220131.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL CER_ES8_NPP-FM5
CER_ES9_NOAA20-FM6_Edition1_101109.202201.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL CER_ES9_NOAA20-FM6
CER_ES9_NPP-FM5_Edition2_202209.201909.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL CER_ES9_NPP-FM5
CER_ISCCP-D2like-Day_Aqua-FM3-MODIS_Edition3A_300300.201612.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL CER_ISCCP-D2like-Day_Aqua-FM3-MODIS_Edition3A
CER_ISCCP-D2like-GEO_DAY_Edition3A_300300.201612.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL CER_ISCCP-D2like-GEO_DAY_Edition3A
CER_SSF1deg-Hour_NOAA20-VIIRS_Edition1B_101102.20220131.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL CER_SSF1deg-Hour_NOAA20-VIIRS_Edition1B
CER_SSF1deg-Hour_NPP-VIIRS_Edition2A_200203.20190930.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL CER_SSF1deg-Hour_NPP-VIIRS_Edition2A
CER_SSF1deg-Day_NOAA20-VIIRS_Edition1B_101102.202201.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL CER_SSF1deg-Day_NOAA20-VIIRS
CER_SSF1deg-Day_NPP-VIIRS_Edition2A_200203.201909.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL CER_SSF1deg-Day_NPP-VIIRS
CER_SSF1deg-Month_NOAA20-VIIRS_Edition1B_101102.202201.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL CER_SSF1deg-Month_NOAA20-VIIRS_Edition1B
CER_SSF1deg-Month_NPP-VIIRS_Edition2A_200203.201909.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL CER_SSF1deg-Month_NPP-VIIRS_Edition2A
DSCOVR Swath DSCOVR_EPIC_L2_TO3_03_20210301005516_03.h5 Python NCL MATLAB IDL Python NCL MATLAB IDL DSCOVR_EPIC_L2_TO3
MISR
more examples
Grid MISR_AM1_CGAL_2017_F06_0024.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL MIL3YAL_6
MISR_AM1_TC_ALBEDO_P223_O056884_F05_0011.hdf
lat_MISR_AM1_TC_ALBEDO_P223_O056884_F05_0011.output
lon_MISR_AM1_TC_ALBEDO_P223_O056884_F05_0011.output
Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z) MIL2TCAL_2
MISR_AM1_GRP_ELLIPSOID_GM_P117_O058421_BA_F03_0024.hdf
MISR_AM1_AGP_P117_F01_24.hdf
Python NCL MATLAB
IDL Python NCL MATLAB IDL MI1B2E_3
MIANCAGP_1
MISR_AM1_AS_AEROSOL_P004_O066234_F13_0023.nc Python NCL MATLAB IDL Python NCL MATLAB IDL MIL2ASAE_003
MOPITT
more examples
Swath MOP02J-20131129-L2V19.9.3.he5 Python n/a MATLAB IDL Python n/a MATLAB IDL MOP02J
MOP02N-20180311-L2V19.9.2.he5 Python n/a MATLAB IDL Python n/a MATLAB IDL MOP02N
Grid MOP03T-20131129-L3V5.9.1.he5 Python NCL MATLAB IDL Python NCL MATLAB IDL MOP03T
MOP03TM-201802-L3V95.9.1.he5 Python NCL MATLAB IDL Python NCL MATLAB IDL MOP03TM
POAM3 Swath poam3_ver4_sh_199808.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL POAM3
Python(v) NCL(v) MATLAB(v) IDL(v) Python(v) NCL(v) MATLAB(v) IDL(v)
SAGE III Swath g3b.ssp.2022062949SSv05.21 Python NCL MATLAB IDL Python NCL MATLAB IDL g3bssp
TES Swath TES-Aura_L2-O3-Nadir_r0000002433_F08_12.he5 Python NCL MATLAB IDL Python NCL MATLAB IDL TL2O3N
Python(v) NCL(v) MATLAB(v) IDL(v) Python(v) NCL(v) MATLAB(v) IDL(v)
Grid TES-Aura_L3-CH4_r0000033028_C01_F01_12.he5 Python NCL MATLAB IDL Python NCL MATLAB IDL TL3CH4D
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

The following table selects MEaSUREs product examples only from the above table.

NASA Data Centers MEaSUREs Product Examples using different tools
GESDISC BUV SWDB GSSTF
LP DAAC VIP WELD
Table 2. Sample MEaSUREs 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: 12/07/2022
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