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
LP DAAC Product Type File Codes Plots Note
MCD
more examples
Grid MCD43B4.A2007193.h25v05.005.2007211152315.hdf
lat_MCD43B4.A2007193.h25v05.005.2007211152315.output
lon_MCD43B4.A2007193.h25v05.005.2007211152315.output
NCL MATLAB IDL NCL MATLAB IDL
MCD43C1.A2006353.004.2007012185705.hdf NCL MATLAB IDL NCL MATLAB IDL
MOD
more examples
Swath

MOD11_L2.A2007278.0350.005.2007280073443.hdf
MOD03.A2007278.0350.005.2009162161456.hdf (m)

NCL MATLAB
MATLAB(z)
IDL
IDL(z)
NCL MATLAB
MATLAB(z)
IDL
IDL(z)
 
MOD13C2.A2007001.005.2007108072029.hdf NCLMATLAB IDL NCLMATLAB IDL
Grid MOD11C2.A2007073.005.2007098050130.hdf NCL MATLAB IDL NCL MATLAB IDL

MOD09GA.A2007268.h10v08.005.2007272184810.hdf
lat_MOD09GA.A2007268.h10v08.005.2007272184810_MODIS_Grid_500m_2D.output
lon_MOD09GA.A2007268.h10v08.005.2007272184810_MODIS_Grid_500m_2D.output
lat_MOD09GA.A2007268.h10v08.005.2007272184810_MODIS_Grid_1km_2D.output
lon_MOD09GA.A2007268.h10v08.005.2007272184810_MODIS_Grid_1km_2D.output

NCL(z) MATLAB(z) IDL(z) NCL(z) MATLAB(z) IDL(z) Field: Range_1
NCL(z) MATLAB(z) IDL(z) NCL(z) MATLAB(z) IDL(z) Field: sur_ref_b01
MOD09GHK.A2007001.h31v08.004.2007003192844.hdf
lat_MOD09GHK.A2007001.h31v08.004.2007003192844.output
lon_MOD09GHK.A2007001.h31v08.004.2007003192844.output
NCL MATLAB IDL NCL MATLAB IDL  
MOD13A1.A2007257.h09v05.005.2007277183254.hdf
lat_MOD13A1.A2007257.h09v05.005.2007277183254.output
lon_MOD13A1.A2007257.h09v05.005.2007277183254.output
NCL MATLAB IDL NCL MATLAB IDL  
MOD43B4.A2006353.h15v15.004.2007006030047.hdf
lat_MOD43B4.A2006353.h15v15.004.2007006030047.output
lon_MOD43B4.A2006353.h15v15.004.2007006030047.output
NCL MATLAB IDL NCL MATLAB IDL  
MOD17A2.A2007113.h11v09.005.2007136163924.hdf
lat_MOD17A2.A2007113.h11v09.005.2007136163924.output
lon_MOD17A2.A2007113.h11v09.005.2007136163924.output
NCL MATLAB IDL NCL MATLAB IDL  
MYD Swath MYD11_L2.A2007093.0735.005.2007101061952.hdf
MYD03.A2007093.0735.005.2009281140106.hdf (m)
NCL
NCL(z)
MATLAB
MATLAB(z)
IDL
IDL(z)
NCL
NCL(z)
MATLAB
MATLAB(z)
IDL
IDL(z)
Grid MYD11C2.A2006337.004.2006348062459.hdf NCL MATLAB IDL NCL MATLAB IDL
MYD09A1.A2007273.h03v07.005.2007285103507.hdf
lat_MYD09A1.A2007273.h03v07.005.2007285103507.output
lon_MYD09A1.A2007273.h03v07.005.2007285103507.output
NCL MATLAB IDL NCL MATLAB IDL
MYD17A2.A2007073.h09v08.005.2007096132046.hdf
lat_MYD17A2.A2007073.h09v08.005.2007096132046.output
lon_MYD17A2.A2007073.h09v08.005.2007096132046.output
NCL MATLAB IDL NCL MATLAB IDL
MYD13A1.A2006321.h10v05.004.2006341182856.hdf
lat_MYD13A1.A2006321.h10v05.004.2006341182856.output
lon_MYD13A1.A2006321.h10v05.004.2006341182856.output
NCL(z) MATLAB(z) IDL(z) NCL(z) MATLAB(z) IDL(z)
LaRC [Examples]
NSIDC [Examples]
PO.DAAC [Examples]
Ocean Biology Processing Group [Examples]
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