Skip to content

Commit

Permalink
cleaned up pywps install
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Sep 28, 2017
1 parent 455722d commit ba61be8
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 12 deletions.
32 changes: 24 additions & 8 deletions docs/source/basics/plotter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,25 @@ Objectives:
Run the plotter
---------------

Go to the plotter tutorial source::
Go to the plotter tutorial source:

.. code-block:: bash
$ cd birdhouse-workshop/tutorials/01_plotter
Try the plotter python module::
Try the plotter python module:

.. code-block:: bash
$ python plotter.py
Traceback (most recent call last):
File "plotter.py", line 1, in <module>
import matplotlib.pylab as plt
ModuleNotFoundError: No module named 'matplotlib'
Oops, something is missing ... please install the ``matplotlib`` package via conda::
Oops, something is missing ... please install the ``matplotlib`` package via conda:

.. code-block:: bash
# Let's see what is available
$ conda search -c conda-forge matplotlib
Expand All @@ -49,25 +55,33 @@ Conda will show you a list of packages, which are going to be installed.
Have a look at this list and answer with ``y`` or just press ``enter``.

We should check now the ``plotter.py`` source code.
Open the ``plotter.py`` in your favorite editor, some people like ``vim``::
Open the ``plotter.py`` in your favorite editor, some people like ``vim``:

.. code-block:: bash
$ vim plotter.py
Besides ``matplotlib`` there is another ``import`` for ``netCDF4``.
Let us install it::
Let us install it:

.. code-block:: bash
# same procedure as above ...
$ conda search -c conda-forge netcdf4
$ conda install -c conda-forge netcdf4
So, we should now be ready to run the plotter::
So, we should now be ready to run the plotter:

.. code-block:: bash
$ python plotter.py
Plotting ../data/air.mon.ltm.nc ...
Plot written to plot.png
A plot was generated. Open it in your favorite image viewer.
On Ubuntu/LinuxMint you can try *Eye of Gnome*::
On Ubuntu/LinuxMint you can try *Eye of Gnome*:

.. code-block:: bash
$ eog plot.png
Expand All @@ -87,7 +101,9 @@ Open the ``plotter.py`` and implement the following features:

You will need an additional Python package, ``cartopy``, which you can install with conda.
This package is available on the conda-forge channel.
You need to provide an option with the conda channel::
You need to provide an option with the conda channel:

.. code-block:: bash
$ conda install -c conda-forge mypackage
Expand Down
7 changes: 6 additions & 1 deletion docs/source/pywps/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,14 @@ Start the service by running the following command:

.. code-block:: bash
# change to workshop root folder
$ cd birdhouse-workshop/
# start demo service
$ python demo/demo.py
If everything went well you should have a console output as follows::
If everything went well you should have a console output as follows:

.. code-block:: bash
Configuration file(s) ['demo/default.cfg'] loaded
starting WPS service on http://localhost:5000/wps
Expand Down
7 changes: 4 additions & 3 deletions docs/source/quick.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Basics:

PyWPS:

5. :ref:`pywps_installation`
6. :ref:`pywps_process`
7. :ref:`pywps_clients`
5. :ref:`pywps_intro`
6. :ref:`pywps_installation`
7. :ref:`pywps_process`
8. :ref:`pywps_clients`

0 comments on commit ba61be8

Please sign in to comment.