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.

For a list of examples for the different data centers, click on the examples in the table below.

NASA Data Centers Product Examples using different tools
GESDISC [Examples]
LAADS [Examples]
LP DAAC [Examples]
LaRC [Examples]
NSIDC [Examples]
PO.DAAC [Examples]
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
GHRC [Examples]
ICESat-2 [Examples]
Table 1: Sample 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 [Examples]
Ocean Productivity [Examples]
Table 2: 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: 05/14/2012
About Us | Contact Info | Archive Info | Disclaimer
Sponsored by NASA Cooperative Agreement Grant Number NNX08AO77A / Maintained by The HDF Group