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 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
OBPG Product Type File Codes Plots CMR
OCTS Swath O1996306152450.L2_GAC_OC.nc Python NCL MATLAB IDL Python NCL MATLAB IDL OCTS_L2_OC
Grid O1997011.L3m_DAY_CHL_chlor_a_9km.nc Python NCL MATLAB IDL Python NCL MATLAB IDL OCTS_L3m_IOP
SeaWiFS Swath S1997247162631.L2_MLAC_OC.nc Python NCL MATLAB IDL Python NCL MATLAB IDL SeaWiFS_L2_OC
Grid S19990011999008.L3m_8D_CHL_chlor_a_9km.nc Python NCL MATLAB IDL Python NCL MATLAB IDL SeaWiFS_L3m_CHL
CZCS Swath C1978303124834.L2_MLAC_OC.nc Python NCL MATLAB IDL Python NCL MATLAB IDL CZCS_L2_OC
Grid C19860011986008.L3m_8D_CHL_chlor_a_9km.nc Python NCL MATLAB IDL Python NCL MATLAB IDL CZCS_L3m_CHL
Aqua-MODIS Swath AQUA_MODIS.20020704T185006.L2.SST.nc Python NCL MATLAB IDL Python NCL MATLAB IDL MODISA_L2_SST
Grid A20021612002192.L3m_R32_SST_sst_4km.nc Python NCL MATLAB IDL Python NCL MATLAB IDL MODISA_L3m_SST
Terra-MODIS Swath T2010001000000.L2_LAC_SST.nc Python NCL MATLAB IDL Python NCL MATLAB IDL MODIST_L2_SST
Grid T20000322000060.L3m_MO_NSST_sst_4km.nc Python NCL MATLAB IDL Python NCL MATLAB IDL MODIST_L3m_SST
SNPP-VIIRS Swath V2013335181200.L2_SNPP_OC.nc Python(z) NCL(z) MATLAB(z) IDL(z) Python(z) NCL(z) MATLAB(z) IDL(z) VIIRSN_L2_OC
Grid V20120012012366.L3m_YR_SNPP_KD490_Kd_490_4km.nc Python NCL MATLAB IDL Python NCL MATLAB IDL VIIRSN_L3m_KD
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: 01/24/2020
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