examples.rst 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Examples
  2. ========
  3. Some example about ``pyModis`` library and script
  4. Scripts
  5. ^^^^^^^
  6. .. only:: latex
  7. * :doc:`full_example_gdal`
  8. * :doc:`full_example_mrt`
  9. .. raw:: latex
  10. \newpage % hard pagebreak at exactly this position
  11. .. toctree::
  12. :maxdepth: 4
  13. full_example_gdal
  14. full_example_mrt
  15. Library
  16. ^^^^^^^
  17. To test ``pyModis`` library you can find an `Ipython notebook`_ example
  18. in the documentation source code.
  19. If you already downloaded ``pyModis`` source code you have just to
  20. move inside the directory ``pyModis/docs/source/examples`` otherwise
  21. you can download the needed file from
  22. `source code <https://raw.githubusercontent.com/lucadelu/pyModis/master/docs/source/examples/pyModis.ipynb>`_
  23. and move to the directory where you downloaded the file.
  24. At this point you can start `Ipython notebook`_ running a notebook server
  25. from the command line using the following command
  26. ::
  27. ipython notebook
  28. This will print some information about the notebook server in your console,
  29. and open a web browser to the URL of the web application.
  30. The landing page of the IPython notebook web application, the dashboard,
  31. shows the notebooks currently available in the notebook directory
  32. (in our case only **pyModis.ipynb**).
  33. .. image:: ../_static/ipython_dash.png
  34. :scale: 80%
  35. :alt: Ipython notebook dashboard
  36. :align: center
  37. Clicking on **pyModis.ipynb** link you will start the notebook
  38. .. image:: ../_static/ipython_example.png
  39. :scale: 40%
  40. :alt: Ipython notebook pyModis example
  41. :align: center
  42. .. warning::
  43. You have to install ``pyModis`` before run the `Ipython notebook`_ example.
  44. .. _Ipython notebook: http://ipython.org/notebook.html