Comprehensive Examples

This page provides comprehensive examples on how to access and visualize various NASA HDF/HDF-EOS files using IDL ®, MATLAB® and NCL. 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: 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
LAADS MOD MYD NPP VIIRS
LP DAAC MCD MOD MYD VIP WELD GED
LaRC CALIPSO CERES MISR MOPITT TES
NSIDC AMSR_E MODIS NISE ICESat/GLAS
PO.DAAC AVHRR SeaWinds QuikSCAT Aquarius
Ocean Biology Processing Group
OBPG Product Type File Codes Plots Note
OCTS Swath O1996306152450.L2_GAC.hdf NCL
NCL(z)
MATLAB
MATLAB(z)
IDL
IDL(z)
NCL
NCL(z)
MATLAB
MATLAB(z)
IDL
IDL(z)
Grid O19970011997031.L3m_MO_A520_9.hdf NCL MATLAB IDL NCL MATLAB IDL
SeaWiFS Swath S1997247162631.L2_MLAC_OC.hdf NCL
NCL(z)
MATLAB
MATLAB(z)
IDL
IDL(z)
NCL
NCL(z)
MATLAB
MATLAB(z)
IDL
IDL(z)
Grid S1999001.L3m_DAY_CHL_chlor_a_9km.hdf NCL MATLAB IDL NCL MATLAB IDL MATLAB and IDL plots are shown with natural log scale.
CZCS Swath C1978303124834.L2_MLAC.hdf NCL
NCL(z)
MATLAB
MATLAB(z)
IDL
IDL(z)
NCL
NCL(z)
MATLAB
MATLAB(z)
IDL
IDL(z)
Grid C19860011986008.L3m_8D_CHLO_4.hdf NCL MATLAB IDL NCL MATLAB IDL
MODISA Swath A2002185000000.L2_LAC_SST.hdf NCL
NCL(z)
MATLAB
MATLAB(z)
IDL
IDL(z)
NCL
NCL(z)
MATLAB
MATLAB(z)
IDL
IDL(z)
Grid A20021612002192.L3m_R32_NSST_4.hdf NCL MATLAB IDL NCL MATLAB IDL
MODIST Swath T2010001000000.L2_LAC_SST.hdf NCL
NCL(z)
MATLAB
MATLAB(z)
IDL
IDL(z)
NCL
NCL(z)
MATLAB
MATLAB(z)
IDL
IDL(z)
Grid T20000322000060.L3m_MO_NSST_4.hdf NCL MATLAB IDL NCL MATLAB IDL
VIIRS Swath V2013335180706.L2_NPP_OC.hdf NCL(z) MATLAB(z) IDL(z) NCL(z) MATLAB(z) IDL(z)
Grid V20120012012366.L3m_YR_NPP_KD490_Kd_490_4km.hdf NCL MATLAB IDL NCL MATLAB IDL
GHRC LIS
ICESat-2 MABEL
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 HDF4 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 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 to read comprehensive description and retrieve sample files.


Last modified: 12/12/2013
About Us | Contact Info | Archive Info | Disclaimer
Sponsored by Subcontract number 114820 under Raytheon Contract number NNG10HP02C, funded by NASA / Maintained by The HDF Group