How can I plot MODIS HDF-EOS grid images into geographic coordinates (lat-lon)?

When I finish my analysis I have a 2400X2400 matrix that I want to plot, but since the original image was in sinusoidal projection, when I use imagesc it plots the image in a distorted way. I want to convert the image to geographic coordinates before plotting it. How can this be done?

1 Comment

Hi,
I am exactly meeting the same problem. I wonder if you have figured out this problem yet?
Thanks

Sign in to comment.

Answers (3)

Hi,
I am exactly meeting the same problem. I wonder if you have figured out this problem yet?
Thanks
Hi, I extracted the pixel lat-lon coordinates using this: https://www.mathworks.com/matlabcentral/fileexchange/37033-find-pixel-indices-in-hdf-eos-files-based-on-latlon-coordinates
and then used surfm to plot.
I wrote a function for this, which is available on File Exchange here.

Asked:

on 10 May 2016

Commented:

on 15 Jan 2021

Community Treasure Hunt

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

Start Hunting!