I am going to use pyModis to work with MODIS data,

Since I am quite new to Python, before starting to learn and use pyModis, I have a question for those who are familiar and using pyModis, right now.

We know that Atmospheric data (HDF files) from Modis, like "MOD05_L2", only can be opened and managed using "ModisSwathTool".

In other words, MRT (MODIS Reprojection Tool) can NOT open those kind of HDF files.

As far as I read in the pyModis website , pyModis is using MRT (MODIS Reprojection Tool) to work with the data.

I would be very grateful if anyone could do me a big favour and answer to my question?

Q: Dose pyModis work with “ModisSwathTool” too?

I mean, can pyModis manage and work with Atmospheric data from Modis, too?


pyModis, specifically the modis_mosaic and modis_convert scripts can use either MRT or GDAL to mosaic and/or reproject the data (see modis_mosaic.py documentation).

If pyModis somehow fails for your specific use case you can still use it to download the data and then reproject it with the Modis Swath Tool.

  • Thanks @Kersten , but the problem is that using the Modis Swath Tool is so time consuming when we have a daily basis data for several years. Because of that, I would like to use programming to do all steps. You know, downloading the data is very simple using a Download Manager like IDM. Just you need to introduce your download_link.txt to such software. However, I will try to find the answer, and will announce here. Thanks again.
    – Jeoff
    Jun 12 '15 at 20:39
  • Since the MRTSwath tool can be called from the command line you can use Pythons subprocess package to use it programatically. This is also exactly what pyModis does when you use it with MRT. You could also modify the source code to use MRTSwath instead of MRT.
    – Kersten
    Jun 15 '15 at 9:41
  • @Jeoff Please do not share details like your email address in posts (questions, answers and comments). If you are happy for people to contact you offline then you can place such details in your user card. meta.stackexchange.com/questions/431/…
    – PolyGeo
    Jun 17 '15 at 6:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.