hdfgd issue when reading MODIS mcd12c1 coordinates (or the way to get the coordinates of hdf-eos data)
3 次查看(过去 30 天)
显示 更早的评论
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)
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 HDF5 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!