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
LP DAAC Product Type File Codes Plots CMR
AST Swath AST_L1T_00307032007164549_20150520034236_114188.hdf
lat_AST_L1T_00307032007164549_20150520034236_114188.output
lon_AST_L1T_00307032007164549_20150520034236_114188.output
Browse image in color and gray from data center
Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z) AST_L1T_003
AST_08_00310162018232146_20181017215729_30106.hdf
lat_AST_08_00310162018232146_20181017215729_30106.output
lon_AST_08_00310162018232146_20181017215729_30106.output
Browse image in color from data center
Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z) AST_08_003
MCD
more examples
Grid MCD43A3.A2013305.h12v11.005.2013322102420.hdf
lat_MCD43A3.A2013305.h12v11.005.2013322102420.output
lon_MCD43A3.A2013305.h12v11.005.2013322102420.output
Browse image from data center
Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z) MCD43A3_005
MCD43B4.A2007193.h25v05.005.2007211152315.hdf
lat_MCD43B4.A2007193.h25v05.005.2007211152315.output
lon_MCD43B4.A2007193.h25v05.005.2007211152315.output
Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z) MCD43B4_005
MCD43C1.A2006353.005.2008135054503.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL MCD43C1_005
MOD
more examples
Swath MOD11_L2.A2007278.0350.006.2015324075130.hdf
MOD03.A2007278.0350.006.2012240120846.hdf (m)
Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z)
MOD11_L2_006
Grid MOD13C2.A2007001.006.2015161222701.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL MOD13C2_006
MOD11C2.A2007073.006.2015312165940.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL MOD11C2_006
MOD09GA.A2007268.h10v08.006.2015166222724.hdf
lat_MOD09GA.A2007268.h10v08.006.2015166222724.output
lon_MOD09GA.A2007268.h10v08.006.2015166222724.output
Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z) MOD09GA_006
MOD09Q1.A2007001.h31v08.006.2015126040724.hdf
lat_MOD09Q1.A2007001.h31v08.006.2015126040724.output
lon_MOD09Q1.A2007001.h31v08.006.2015126040724.output
Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z) MOD09Q1_006
MOD13A1.A2007257.h09v05.006.2015167042211.hdf
lat_MOD13A1.A2007257.h09v05.006.2015167042211.output
lon_MOD13A1.A2007257.h09v05.006.2015167042211.output
Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z) MOD13A1_006
MOD17A2H.A2007113.h11v09.006.2015131010339.hdf
lat_MOD17A2H.A2007113.h11v09.006.2015131010339.output
lon_MOD17A2H.A2007113.h11v09.006.2015131010339.output
Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z) MOD17A2H_006
MYD Swath MYD11_L2.A2007093.0735.006.2015312155440.hdf
MYD03.A2007093.0735.006.2012073162442.hdf (m)
Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z)
MATLAB(z)
IDL(z) MYD11_L2_006
Grid MYD09A1.A2007273.h03v07.006.2015167083229.hdf
lat_MYD09A1.A2007273.h03v07.006.2015167083229.output
lon_MYD09A1.A2007273.h03v07.006.2015167083229.output
Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z) MYD09A1_006
MYD09GQ.A2012246.h35v10.006.2015248145541.hdf
lat_MYD09GQ.A2012246.h35v10.006.2015248145541.output
lon_MYD09GQ.A2012246.h35v10.006.2015248145541.output
Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z) MYD09GQ_006
MYD11C2.A2006337.006.2015305063155.hdf Python NCL MATLAB IDL Python NCL MATLAB IDL MYD11C2_006
MYD17A2H.A2007073.h09v08.006.2015129152346.hdf
lat_MYD17A2H.A2007073.h09v08.006.2015129152346.output
lon_MYD17A2H.A2007073.h09v08.006.2015129152346.output
Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z) MYD17A2H_006
MYD13A1.A2006329.h10v05.006.2015161182840.hdf
lat_MYD13A1.A2006329.h10v05.006.2015161182840.output
lon_MYD13A1.A2006329.h10v05.006.2015161182840.output
Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z) MYD13A1_006
VIP Grid VIP01.A2010001.004.2016177161542.hdf
Python NCL MATLAB IDL Python NCL MATLAB IDL VIP01_004
(MEaSUREs)
WELD Grid CONUS.annual.2012.h01v06.doy007to356.v1.5.hdf (size:220M)
lat_CONUS.annual.2012.h01v06.doy007to356.v1.5.hdf.output (size:310M)
lon_CONUS.annual.2012.h01v06.doy007to356.v1.5.hdf.output (size:310M)
Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z) WELDUSYR_001
(MEaSUREs)
GED Grid AG100.v003.64.-089.0001.h5 (browse image by NASA) Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z) AG100_003
VIIRS
more examples
Grid VNP09GA.A2020305.h30v07.001.2020306101330.h5 Python(z) n/a n/a n/a Python(z) n/a n/a n/a VNP09GA
GEOLST Swath GEOLST4KHR_201612291600_002_20210714015139.h5 Python NCL MATLAB IDL Python NCL MATLAB IDL GEOLST4KHR
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: 09/03/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