MATLAB Answers

0

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

Asked by Offer Rozenstein on 10 May 2016
Latest activity Answered by Chad Greene
on 12 Sep 2017

I'm analyzing level-3 Modis products, for example: http://e4ftl01.cr.usgs.gov//MODIS_Composites/MOTA/MCD43A4.005/2011.08.21/MCD43A4.A2011233.h12v04.005.2011250155139.hdf

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?

  0 Comments

Sign in to comment.

3 Answers

Answer by Tianqi Zhang on 18 Oct 2016

Hi,

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

Thanks

  0 Comments

Sign in to comment.


Answer by Offer Rozenstein on 18 Oct 2016

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.

  0 Comments

Sign in to comment.


Answer by Chad Greene
on 12 Sep 2017

I wrote a function for this, which is available on File Exchange here.

  0 Comments

Sign in to comment.


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today