pythonhdf5gdalmosaic

How to mosaic MODIS hdf files using Python GDAL?


I have downloaded large amounts of MODIS hdf files and extracted needed bands from each file.How can I mosaic all the hdf files together using GDAL lib in Python and reproject it?Thanks!


Solution

  • Use two GDAL command line tools:

    1. gdal_merge.py to mosaic the bands into one raster
    2. gdalwarp to reproject the raster