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
GES DISC Product Type File Codes Plots CMR
AIRS
more examples
Swath AIRS.2023.03.24.240.L2.SUBS2SUP.v7.0.7.0.G23084133451.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL AIRS2RET
AIRS.2002.08.30.227.L2.RetStd_H.v6.0.12.0.G14101125810.hdf Python(p) NCL(p) MATLAB(p) IDL(p) Python(p) NCL(p) MATLAB(p) IDL(p) AIRH2RET_006
Grid AIRS.2003.02.05.L3.RetStd_H001.v6.0.12.0.G14112124328.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL AIRH3STD_006
TRMM
more examples
Swath 1B21.19971208.00170.7.HDF Python NCL MATLAB IDL Python NCL MATLAB IDL TRMM_1B21_7
2A12.20140308.92894.7.HDF (browse image by NASA) Pytnon NCL MATLAB IDL Python NCL MATLAB IDL TRMM_2A12_7
2B31.20140108.91989.7.HDF Pytnon NCL MATLAB IDL Python NCL MATLAB IDL TRMM_2B31_7
Grid 3B42.20131130.21.7.HDF Python NCL MATLAB IDL Python NCL MATLAB IDL TRMM_3B42_7
3B43.20130901.7.HDF Python NCL MATLAB IDL Python NCL MATLAB IDL TRMM_3B43_7
3A26.20140101.7.HDF Python NCL MATLAB IDL Python NCL MATLAB IDL TRMM_3A26_7
MERRA
more examples
Grid MERRA2_400.tavg1_2d_slv_Nx.20140101.nc4 Python NCL MATLAB IDL Python NCL MATLAB IDL M2T1NXSLV_5.12.4
MERRA2_400.tavg3_3d_nav_Ne.20151226.nc4 Python NCL MATLAB IDL Python NCL MATLAB IDL M2T3NENAV_5.12.4
MERRA300.prod.assim.inst3_3d_chm_Ne.20021201.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL MAI3NECHM_5.2.0
MERRA300.prod.assim.tavg3_3d_chm_Nv.20021201.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL MAT3NVCHM_5.2.0
TOMS
Grid TOMS-EP_L3-TOMSEPL3_2000m0101_v8.HDF Python NCL MATLAB IDL Python NCL MATLAB IDL TOMSEPL3_008
OMI
more examples
Swath OMI-Aura_L2-OMNO2_2008m0720t2016-o21357_v003-2016m0820t102252.he5 Python NCL MATLAB IDL Python NCL MATLAB IDL OMNO2_003
Grid OMI-Aura_L2G-OMSO2G_2017m0123_v003-2017m0124t071057.he5 Python NCL MATLAB IDL Python NCL MATLAB IDL OMSO2G_003
OMI-Aura_L3-OMTO3e_2017m0105_v003-2017m0203t091906.he5 Python NCL MATLAB IDL Python NCL MATLAB IDL OMTO3e_003
MLS Swath MLS-Aura_L2GP-BrO_v04-23-c03_2016d302.he5 Python NCL MATLAB IDL Python NCL MATLAB IDL ML2BRO_004
MLS-Aura_L2GP-H2O_v04-20-c01_2013d003.he5 Python NCL MATLAB IDL Python NCL MATLAB IDL ML2H2O_004
MLS-Aura_L2GP-O3_v04-23-c02_2019d001.he5 Python NCL MATLAB IDL Python NCL MATLAB IDL ML2O3
HIRDLS ZA HIRDLS-Aura_L3ZFCNO2_v07-00-20-c01_2005d022-2008d077.he5 Python NCL MATLAB IDL Python NCL MATLAB IDL H3ZFCNO2_007
Swath HIRDLS-Aura_L2_v07-00-20-c01_2008d077.he5 Python NCL MATLAB IDL Python NCL MATLAB IDL HIRDLS2_007
BUV ZA BUV-Nimbus04_L3zm_v01-02-2013m0422t101810.h5 Python NCL MATLAB IDL Python NCL MATLAB IDL BUVN04L3zm_1
Swath SBUV2-NOAA17_L2-SBUV2N17L2_2011m1231_v01-02-2013m0828t143157.h5 Python NCL MATLAB IDL Python NCL MATLAB IDL SBUV2N17L2_1
SWDB Swath DeepBlue-SeaWiFS_L2_20101210T135954Z_v004-20130525T172725Z.h5 Python NCL MATLAB IDL Python NCL MATLAB IDL SWDB_L2_004
Grid DeepBlue-SeaWiFS-1.0_L3_20100101_v004-20130604T131317Z.h5 Python NCL MATLAB IDL Python NCL MATLAB IDL SWDB_L310_004
GSSTF
Grid GSSTF.3.2008.12.31.he5 Python NCL MATLAB IDL Python NCL MATLAB IDL GSSTF
GSSTF_NCEP.3.2008.12.31.he5 Python NCL MATLAB IDL Python NCL MATLAB IDL GSSTF_NCEP
GSSTFYC.3.Year.1988_2008.he5 Python NCL MATLAB IDL Python NCL MATLAB IDL GSSTFYC
GOSAT/ACOS Swath acos_L2s_110101_02_Production_v201201_L2Sub7309_r01_PolB_161206183303.h5 Python NCL MATLAB IDL Python NCL
(1/2/3)
MATLAB IDL ACOS_L2S_7.3
OCO2 Swath oco2_L2StdND_03949a_150330_B8100r_170916014809.h5 Python NCL MATLAB IDL Python NCL MATLAB IDL OCO2_L2_Standard_8r
GPM
more examples
Swath 1A.GPM.GMI.COUNT2016.20160105-S230545-E003816.010538.V05A.HDF5 Python NCL MATLAB IDL Python NCL MATLAB IDL GPM_1AGMI_05
1B.GPM.GMI.TB2016.20160105-S230545-E003816.010538.V05A.HDF5 Python NCL MATLAB IDL Python NCL MATLAB IDL GPM_1BGMI_05
1C.F19.SSMIS.XCAL2016-V.20160105-S214106-E232259.009078.V05A.HDF5 Python NCL MATLAB IDL Python NCL MATLAB IDL GPM_1CF19SSMIS_05
2A.GPM.DPR.V7-20170308.20170704-S001905-E015140.019017.V05A.HDF5 Python NCL MATLAB IDL Python NCL MATLAB IDL GPM_2ADPR_05
Grid 3A-MO.GPM.GMI.GRID2017R1.20140701-S000000-E235959.07.V05A.HDF5 Python NCL MATLAB IDL Python NCL MATLAB IDL GPM_3GPROFGPMGMI_05
LAADS MOD MYD VIIRS
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

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: 05/10/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