modis_mosaic.rst 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. modis_mosaic.py
  2. ---------------
  3. **modis_mosaic.py** creates a mosaic of several MODIS tiles in
  4. HDF format, using MRT mrtmosaic software or GDAL library.
  5. Usage
  6. ^^^^^
  7. .. code-block:: none
  8. modis_mosaic.py [options] hdflist_file
  9. Options
  10. ^^^^^^^
  11. .. image:: ../_static/gui/modis_mosaic.png
  12. :scale: 65%
  13. :alt: GUI for modis_mosaic.py
  14. :align: left
  15. :class: gui
  16. .. code-block:: none
  17. General options:
  18. -o OUTPUT_FILE, --output=OUTPUT_FILE
  19. (Required) the name or prefix (for VRT) of output
  20. mosaic
  21. -s SUBSET, --subset=SUBSET
  22. a subset of product layers. The string should be
  23. similar to: 1 0 [default: all layers]
  24. Options for GDAL:
  25. -f OUTPUT_FORMAT, --output-format=OUTPUT_FORMAT
  26. output format supported: GTiff, HDF4Image
  27. [default=GTiff]
  28. -v, --vrt Create a GDAL VRT file. No other GDAL options have to
  29. been set
  30. Options for MRT:
  31. -m MRT_PATH, --mrt=MRT_PATH
  32. (Required) the path to MRT software
  33. Examples
  34. ^^^^^^^^
  35. Using the MODIS Reprojection Tool
  36. """""""""""""""""""""""""""""""""
  37. Convert all the layers of several tiles
  38. .. code-block:: none
  39. modis_mosaic.py -m "/usr/local/bin/" -o FILE_mosaic MOSAIC_FILES_LIST
  40. Convert LAYERS of several LST MODIS tiles
  41. .. code-block:: none
  42. modis_mosaic.py -s "1 0 1 0" -m "/usr/local/bin/" -o FILE_mosaic MOSAIC_FILES_LIST
  43. Using GDAL
  44. """"""""""
  45. Convert the first LAYERS of several tiles with resolution 1km in GeoTIFF format
  46. .. code-block:: none
  47. modis_mosaic.py -o FILE_mosaic.tif -s "1" MOSAIC_FILES_LIST
  48. Create a mosaic with all the layers of several tiles in HDF4Image format
  49. .. code-block:: none
  50. modis_mosaic.py -o FILE_mosaic.hdf -f HDF4Image MOSAIC_FILES_LIS
  51. Create VRT file for all subset. It creates a VRT file for each subset with the
  52. chosen prefix (``-o`` flag) and the name of layer as suffix
  53. .. code-block:: none
  54. modis_mosaic.py -o mosaic_vrt -v MOSAIC_FILES_LIS
  55. .. only:: latex
  56. .. raw:: latex
  57. \newpage % hard pagebreak at exactly this position