Commit 470569f9 authored by Jon Pye's avatar Jon Pye
Browse files

switched instructions to markdown

parent abc3dac3
# Installation requirements for Visualization demo:
# Installation requirements for Visualization demo
# It is not necessary to install these to follow the demo on Tuesday. The presentation will not assume you are also going through the steps, and will show you the results of what's being entered/run. If you want to follow along on your own machine, though, these packages are the ones you'll need.
#### It is not necessary to install these to follow the demo on Tuesday. The presentation will not assume you are also going through the steps, and will show you the results of what's being entered/run. If you want to follow along on your own machine, though, these packages are the ones you'll need.
For working in a GUI - QGIS: It helps to do this install first, because for some OSes, it will automatically install requirements we'll need later for the Python install.
......@@ -25,34 +25,34 @@ howto: https://pip.pypa.io/en/latest/installing.html
link: https://bootstrap.pypa.io/get-pip.py
run get-pip.py in your new python environment
#> python get-pip.py
#> python get-pip.py
3) Now we can install python packages on the command line through pip. In a command-line window (cmd or Terminal), type:
#> pip install virtualenv
#> pip install virtualenv
4) Now make a virtual environment somewhere (in your home folder, perhaps):
#> cd place/to/put/my/python/virtualenvs
#> virtualenv carto-demo
#> cd place/to/put/my/python/virtualenvs
#> virtualenv carto-demo
And activate this virtual python environment
Windows:
#> Scripts/activate
#> Scripts/activate
Mac/Linux:
#> source carto-demo/bin/activate
#> source carto-demo/bin/activate
5) Now we can use pip to install (most of) the rest of our requirements
pip will install prerequisites, so this is the most painless way to do things
#> pip install matplotlib
#> pip install owslib
#> pip install shapely
#> pip install pillow
#> pip install pyshp
#> pip install cython
#> pip install pyproj
#> pip install matplotlib
#> pip install owslib
#> pip install shapely
#> pip install pillow
#> pip install pyshp
#> pip install cython
#> pip install pyproj
5a)You may also need to install GDAL (to get PROJ and GEOS), follow these instructions
......@@ -62,9 +62,9 @@ http://trac.osgeo.org/osgeo4w/
Mac users:
If you use Homebrew, you can install these libraries on the command line:
#>brew install geos
#>brew install gdal
#>brew install proj
#> brew install geos
#> brew install gdal
#> brew install proj
or download KyngChaos' GDAL Complete Frameworks .dmg
http://www.kyngchaos.com/software/frameworks#gdal_complete
......@@ -76,9 +76,9 @@ Alas, cartopy is not in pip's library, we'll have to install it manually
howto: http://scitools.org.uk/cartopy/docs/latest/installing.html#installing
link: https://github.com/SciTools/cartopy/archive/master.zip
#>unzip master.zip
cd cartopy-master
python setup.py install
#> unzip master.zip
#> cd cartopy-master
#> python setup.py install
7) Download the example from the GitLab repo:
......@@ -97,25 +97,26 @@ Sudo will prompt you for this.
2)We still have to update/install various python packages. Right click and open a Terminal, and type:
#> sudo apt-get install python-dev
#> sudo apt-get install git
#> sudo apt-get install python-dev
#> sudo apt-get install git
#> sudo pip install geojson
#> sudo pip install owslib --upgrade
#> sudo pip install matplotlib --upgrade
#> sudo pip install geojson
#> sudo pip install owslib --upgrade
#> sudo pip install matplotlib --upgrade
3) Grab the latest version of CartoPy
#> wget https://github.com/SciTools/cartopy/archive/master.zip
#> unzip master.zip
#> cd cartopy-master/
#> sudo python setup.py install
#> wget https://github.com/SciTools/cartopy/archive/master.zip
#> unzip master.zip
#> cd cartopy-master/
#> sudo python setup.py install
Download the owslib example from the OTN GitLab
#> wget https://utility.oceantrack.org/gitlab/jdpye/otn-python-visualization/repository/archive.zip --no-check-certificate
#> unzip archive.zip
#> wget https://utility.oceantrack.org/gitlab/jdpye/otn-python-visualization/repository/archive.zip --no-check-certificate
#> unzip archive.zip
Run the owslib example
#> cd otn-python-visualization.git
#> python owslib_example.py
\ No newline at end of file
#> cd otn-python-visualization.git
#> python owslib_example.py
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment