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
NSIDC Product Type File Codes Plots Note
AMSR_E
more examples
Swath AMSR_E_L2A_BrightnessTemperatures_V12_201110032238_D.hdf NCL MATLAB IDL NCL MATLAB IDL
AMSR_E_L2_Ocean_V06_200206190029_D.hdf NCL MATLAB IDL NCL MATLAB IDL
Grid AMSR_E_L3_SeaIce6km_V11_20050118.hdf
lat_AMSR_E_L3_SeaIce6km_V11_20050118_NpPolarGrid06km.output
lon_AMSR_E_L3_SeaIce6km_V11_20050118_NpPolarGrid06km.output
NCL MATLAB IDL
IDL(p)
NCL MATLAB IDL
IDL(p)
Polar Stereographic projection
AMSR_E_L3_DailyLand_V06_20050118.hdf
lat_AMSR_E_L3_DailyLand_V06_20050118_Ascending_Land_Grid.output
lon_AMSR_E_L3_DailyLand_V06_20050118_Ascending_Land_Grid.output
NCL MATLAB IDL NCL MATLAB IDL
AMSR_E_L3_DailyOcean_V03_20020619.hdf NCL MATLAB IDL NCL MATLAB IDL  
AMSR_E_L3_MonthlyOcean_V03_200206.hdf NCL MATLAB IDL NCL MATLAB IDL  
AMSR_E_L3_RainGrid_V06_200206.hdf NCL MATLAB IDL NCL MATLAB IDL  
AMSR_E_L3_SeaIce12km_V11_20050118.hdf
lat_AMSR_E_L3_SeaIce12km_V11_20050118_NpPolarGrid12km.output
lon_AMSR_E_L3_SeaIce12km_V11_20050118_NpPolarGrid12km.output
lat_AMSR_E_L3_SeaIce12km_V11_20050118_SpPolarGrid12km.output
lon_AMSR_E_L3_SeaIce12km_V11_20050118_SpPolarGrid12km.output
NCL MATLAB IDL
IDL(p)
NCL MATLAB IDL
IDL(p)
Field: SI_12km_NH_18H_DSC
NCL MATLAB IDL
IDL(p)
NCL MATLAB IDL
IDL(p)
Field: SI_12km_SH_36H_DAY
AMSR_E_L3_SeaIce25km_V11_20050118.hdf
lat_NpPolarGrid25km_AMSR_E_L3_SeaIce25km_V11_20050118.output
lon_NpPolarGrid25km_AMSR_E_L3_SeaIce25km_V11_20050118.output
NCL MATLAB IDL NCL MATLAB IDL  
AMSR_E_L3_WeeklyOcean_V03_20020616.hdf NCL MATLAB IDL NCL MATLAB IDL  
AMSR_E_L3_5DaySnow_V09_20050126.hdf
lat_AMSR_E_L3_5DaySnow_V09_20050126.Northern_Hemisphere.output
lon_AMSR_E_L3_5DaySnow_V09_20050126.Northern_Hemisphere.output
NCL(p) MATLAB(p) IDL(p) NCL(p) MATLAB(p) IDL(p) LAMAZ projection
MODIS
more examples
Swath MOD10_L2.A2000065.0040.005.2008235221207.hdf
lat_MOD10_L2.A2000065.0040.005.2008235221207.output
lon_MOD10_L2.A2000065.0040.005.2008235221207.output
NCL(p) MATLAB(p) IDL(p) NCL(p) MATLAB(p) IDL(p)  
MOD29.A2013196.1250.005.2013196195940.hdf
MOD03.A2013196.1250.005.2013196194144.hdf (m)
NCL(p) MATLAB(p) IDL(p) NCL(p) MATLAB(p) IDL(p)  
Grid MOD10A1.A2000065.h00v08.005.2008237034422.hdf
lat_MOD10A1.A2000065.h00v08.005.2008237034422.output
lon_MOD10A1.A2000065.h00v08.005.2008237034422.output
NCL
NCL(z)
MATLAB
MATLAB(z)
IDL
IDL(z)
NCL
NCL(z)
MATLAB
MATLAB(z)
IDL
IDL(z)
Sinusoidal projection
NCL plots are displayed in Geographic projection.
MOD10C1.A2005018.005.2007349093349.hdf NCL MATLAB IDL NCL MATLAB IDL  
MOD29E1D.A2009340.005.2009341094922.hdf
lat_MOD29E1D.A2009340.005.2009341094922.MOD_Grid_Seaice_4km_South.output
lon_MOD29E1D.A2009340.005.2009341094922.MOD_Grid_Seaice_4km_South.output
NCL(p) MATLAB(p) IDL(p) NCL(p) MATLAB(p) IDL(p) LAMAZ projection
MOD29E1D.A2000055.005.2006268025009.hdf
lat_MOD29E1D.A2000055.005.2006268025009.MOD_Grid_Seaice_4km_North.output
lon_MOD29E1D.A2000055.005.2006268025009.MOD_Grid_Seaice_4km_North.output
NCL(p) MATLAB(p) IDL(p) NCL(p) MATLAB(p) IDL(p) LAMAZ projection
MYD29P1D.A2010133.h09v07.005.2010135182659.hdf
lat_MYD29P1D.A2010133.h09v07.005.2010135182659.MOD_Grid_Seaice_1km.output
lon_MYD29P1D.A2010133.h09v07.005.2010135182659.MOD_Grid_Seaice_1km.output
NCL(p) MATLAB(p) IDL(p) NCL(p) MATLAB(p) IDL(p) LAMAZ projection
MYD29P1D.A2010133.h11v05.005.2010135032246.hdf
lat_MYD29P1D.A2010133.h11v05.005.2010135032246.MOD_Grid_Seaice_1km.output
lon_MYD29P1D.A2010133.h11v05.005.2010135032246.MOD_Grid_Seaice_1km.output
NCL(p) MATLAB(p) IDL(p) NCL(p) MATLAB(p) IDL(p) LAMAZ projection
MYD29P1D.A2011080.h07v28.005.2011081223614.hdf
lat_MYD29P1D.A2011080.h07v28.005.2011081223614.MOD_Grid_Seaice_1km.output
lon_MYD29P1D.A2011080.h07v28.005.2011081223614.MOD_Grid_Seaice_1km.output
NCL(p) MATLAB(p) IDL(p) NCL(p) MATLAB(p) IDL(p) LAMAZ projection
NISE Grid NISE_SSMISF17_20110424.HDFEOS
lat_NISE_SSMISF17_20110424.Northern_Hemisphere.output
lon_NISE_SSMISF17_20110424.Northern_Hemisphere.output lat_NISE_SSMISF17_20110424.Southern_Hemisphere.output
lon_NISE_SSMISF17_20110424.Southern_Hemisphere.output
NCL(p) MATLAB(p) IDL(p) NCL(p) MATLAB(p) IDL(p) LAMAZ projection
NCL(p) MATLAB(p) IDL(p) NCL(p) MATLAB(p) IDL(p) LAMAZ projection
ICESat/GLAS Swath GLAH13_633_2103_001_1317_0_01_0001.h5 NCL
NCL(s)
MATLAB
MATLAB(s)
IDL
IDL(s)
NCL
NCL(s)
MATLAB
MATLAB(s)
IDL
IDL(s)
Lat/lon has fill values.
(s):Subsetted data only.
PO.DAAC AVHRR SeaWinds QuikSCAT Aquarius
Ocean Biology Processing Group OCTS SeaWiFS CZCS MODISA MODIST VIIRS
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/09/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