hdfgd issue when reading MODIS mcd12c1 coordinates (or the way to get the coordinates of hdf-eos data)
Show older comments
I used the code below to try to get the grid information of MODIS MCD12C1 data. The data format is hdf-eos. But grid_id always equals to -1. Does anyone know why or share another way with me to read the coordinates of hdf-eos data. Thank you!!!
FILE_NAME='MCD12C1.A2001001.051.2014274170618.hdf'
GRID_NAME='GeoGrid'
file_id = hdfgd('open', FILE_NAME, 'rdonly')
grid_id = hdfgd('attach', file_id, GRID_NAME)
Answers (1)
Rong Yu
on 11 Jun 2015
Categories
Find more on HDF4 Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!