How can I save a Modis HDF-eos grid after analysis?

1 次查看(过去 30 天)
I'm reading a Modis level-3 product - for example:
Then, I'm reading it to matlab and perform some analysis - for example:
S = hdfinfo([pathname filename]);
NBAR_RED=hdfread(S.Vgroup.Vgroup(1).SDS(1));
NBAR_NIR=hdfread(S.Vgroup.Vgroup(1).SDS(2));
NBAR_RED=double(NBAR_RED);
NBAR_NIR=double(NBAR_NIR);
NDVI=(NBAR_NIR-NBAR_RED)./(NBAR_NIR+NBAR_RED);
How can I save NDVI as HDF-eos that is geographically matching the original image?

回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by