I downloaded surface moisture data from Nasa's Soil Moisture Active Passive (SMAP) sensor website (https://nsidc.org/data/smap/smap-data.html).

For each processing level (1-4), three types of files are present inside each folder: a *.qa file, an *.xml file, and a *.h5file.

I tried to open the h5 file with ENVI but the format could not be recognized on the Dataset Browser.

Gdal also could not read it as:

dataset = gdal.Open('SMAP_L1C_S0_HIRES_02045_D_20150620T094355_R11850_001.h5')
print dataset.RasterCount

returned 0 which means that the bands could not be read.

  • 1
    It took me less time to Google (hdf5, envi) and find an answer than it took you to write this post. The search pulled up the ENVI help file for OpenHierarchicalData at exelisvis.com/docs/OpenHierarchicalData.html Nov 29 '15 at 0:07
  • @JeffreyEvans I tried that before posting, and on the Dataset Browser I got This dataset is not supported by ENVI for every raster. Besides, my question was not on how to open an hdf file with ENVI, but how to open SMAP surface moisture files. There was not need to downvote my question since you're not even answering it...
    – Hakim
    Nov 29 '15 at 1:15
  • SMAP data is in a standard HDF5 format and I am having no issues loading it into ENVI or IDL and viewing the soil moisture data, which is one of the rasters in the hdf file. Nov 29 '15 at 5:04
  • 1
    As links can go bad, please edit your answer to include the details necessary to answer this question in the future.
    – MaryBeth
    May 8 '17 at 11:28
  • 1
    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
    – Oto Kaláb
    May 8 '17 at 11:49

This document explains exactly how to read SMAP moisture data: http://smap.jpl.nasa.gov/system/internal_resources/details/original/315_smap_hands_on_v1.pdf


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.