modis_parse.rst 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. modis_parse.py
  2. --------------
  3. **modis_parse.pys** parses the XML metadata file for a MODIS
  4. tile and return the requested value. It can also write the metadata information
  5. into a text file.
  6. Usage
  7. ^^^^^
  8. .. code-block:: none
  9. modis_parse.py [options] hdf_file
  10. Options
  11. ^^^^^^^
  12. .. image:: ../_static/gui/modis_parse.png
  13. :scale: 35%
  14. :alt: GUI for modis_parse.py
  15. :align: left
  16. :class: gui
  17. .. code-block:: none
  18. -h --help show the help
  19. -w --write write the chosen information into a file
  20. -a print all possible values of metadata
  21. -b print the values related to the spatial max extent
  22. -d print the values related to the date files
  23. -e print the values related to the ECSDataGranule
  24. -i print the input layers
  25. -o print the other values
  26. -p print the values related to platform
  27. -q print the values related to quality
  28. -s print the values related to psas
  29. -t print the values related to times
  30. -l print the names of layer in HDF file
  31. Examples
  32. ^^^^^^^^
  33. Return all values of metadata
  34. .. code-block:: none
  35. modis_parse.py -a hdf_file
  36. Write all values to a file
  37. .. code-block:: none
  38. modis_parse.py -a -w metadata_FILE.txt hdf_file
  39. Print spatial extent and quality
  40. .. code-block:: none
  41. modis_parse.py -b -q hdf_file
  42. .. only:: latex
  43. .. raw:: latex
  44. \newpage % hard pagebreak at exactly this position