Skip to content

Commit 138dd47

Browse files
author
Ernesto Rodriguez
committed
Documentation changes
1 parent ebdc1b0 commit 138dd47

21 files changed

+1701
-399
lines changed

InstallBinary.md

+131-30
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,19 @@ this writing).
2020
To create an anaconda virtual environment in a preselected directory
2121
(here, pointed by the environment variable RIVER_DIR):
2222

23-
cd $RIVER_DIR
24-
conda create -p $RIVER_DIR/anaconda numpy ipython ipython-notebook
25-
matplotlib gdal scipy pip scikit-image statsmodels pysal pandas
26-
pytables shapely netcdf4 sphinx numpydoc cython
27-
28-
or, to create an environment in the user's anaconda distribution (Simplest)
29-
30-
conda create -n RiverObsBinary numpy ipython ipython-notebook matplotlib
31-
gdal scipy pip scikit-image statsmodels pysal pandas pytables
32-
shapely netcdf4 sphinx numpydoc cython
23+
conda create -p $RIVER_DIR/RiverObsBinary --file RiverObsSetupPackages.txt
3324

3425
To activate this environment, type
3526

36-
source activate $RIVER_DIR/anaconda
37-
38-
or
39-
40-
source activate RiverObsBinary
41-
42-
if anaconda/bin is in your path. Otherwise, use /path/to/anaconda/bin/source.
27+
source activate $RIVER_DIR/RiverObsBinary
4328

4429
To deactivate this environment, type
4530

4631
source deactivate
4732

4833
Equivalnetly, one can set
4934

50-
export PATH=$RIVER_DIR/anaconda/bin:$PATH
35+
export PATH=$RIVER_DIR/RiverObsBinary/bin:$PATH
5136

5237

5338
##Build additional package requirements
@@ -75,40 +60,156 @@ libspatial index:
7560
conda install -c https://conda.binstar.org/dougal libspatialindex
7661
conda install -c https://conda.binstar.org/dougal rtree
7762

78-
###Install Using pip and brew or manual compilation
63+
However, it has been reported that, depending of the linux
64+
distribution, these packages may have problems of library
65+
dependency. If these installations have problems, remove them using
66+
67+
conda remove libspatialindex
68+
conda remove rtree
69+
70+
and use the manual installation methods below.
71+
72+
###Install Using pip and brew (OSX) or manual compilation
7973

8074
Working inside the virtual environment, the following command:
8175

8276
pip install pyproj
83-
pip install rtree
8477

85-
In addition, [rtree](https://github.com/Toblerity/rtree) requires the
78+
[Rtree](https://github.com/Toblerity/rtree) requires the
8679
[libspatialindex](http://libspatialindex.github.io) library. On a Mac with
8780
[brew](http://brew.sh) this can be done easily:
8881

8982
brew install spatialindex
9083

9184
On a generic Unix system, this can be done by downloading the code from
9285
[osgeo](http://download.osgeo.org/libspatialindex), and following the
93-
usual Unix install process. To avoid pat/ownership conflict, one can install into the
94-
anaconda installation:
86+
usual Unix install process. To avoid ownership conflict, one can install into the
87+
RiverObsBinary installation (e.g.):
9588

96-
tar xvzf spatialindex-src-1.8.1.tar.gz
97-
cd spatialindex-src-1.8.1
98-
./configure --prefix=~/anaconda
89+
tar xvzf spatialindex-src-1.8.5.tar.gz
90+
cd spatialindex-src-1.8.5
91+
./configure --prefix=$RIVER_DIR/RiverObsBinary
9992
make
10093
make install
10194

102-
###Install numpydoc for sphinx documentation (Optional)
95+
This should put the library in $RIVER_DIR/RiverObsBinary/lib and the
96+
includes in $RIVER_DIR/RiverObsBinary/include. To make sure they are
97+
in the load path, you may have to do the following in *nix systems:
10398

104-
This is only required if you want to build the sphinx documentation:
99+
export LD_LIBRARY_PATH=$RIVER_DIR/RiverObsBinary/lib
105100

106-
pip install numpydoc
101+
To install rtree, it should just be possible to issue the following
102+
command from within the virtual environment:
107103

108-
##Install the binary package
104+
pip install rtree
105+
106+
Unfortunately, this does not always work because in some systems
107+
ctypes.util.find_library fails to find the libspatialindex
108+
libraries. If you do have problems, you will have to download and
109+
install the riverobs branch of rtree as follows:
109110

111+
git clone https://github.com/skinkpad/rtree.git
112+
cd rtree
113+
git checkout riverobs
114+
pip install .
110115

116+
If for some reason that still does not work, point to the location of the libspatialindex_c library as follows
117+
(modify according to your system and installation):
111118

119+
export LIBSPATIALINDEX=$RIVER_DIR/RiverObsBinary/lib/libspatialindex_c.so
112120

121+
before installing with pip as above.
122+
123+
124+
##Install the binary package
113125

126+
For release 1.0.0, RiverObs packages for OSX and 64-bit linux
127+
architectures are provided. Once the appropriate package has been
128+
obtained, the RiverObs binary installation is completed by
114129

130+
cd $RIVER_DIR
131+
tar xvzf RiverObsBinary_ARCH_version1.0.0.tgz
132+
133+
where ARCH is either linux64 or OSX. The packages can the be accessed
134+
while working in the RiverObsBinary environment. The the actual
135+
packages provided are:
136+
137+
tar tzf RiverObsBinary_linux64_version1.0.0.tgz
138+
RiverObsBinary/bin/estimate_swot_river.py
139+
RiverObsBinary/lib/python2.7/site-packages/Centerline/
140+
RiverObsBinary/lib/python2.7/site-packages/Centerline/__init__.py
141+
RiverObsBinary/lib/python2.7/site-packages/Centerline/__init__.pyc
142+
RiverObsBinary/lib/python2.7/site-packages/Centerline/version.py
143+
RiverObsBinary/lib/python2.7/site-packages/Centerline/Centerline.so
144+
RiverObsBinary/lib/python2.7/site-packages/Centerline/version.pyc
145+
RiverObsBinary/lib/python2.7/site-packages/GDALOGRUtilities/
146+
RiverObsBinary/lib/python2.7/site-packages/GDALOGRUtilities/GDALWriter.so
147+
RiverObsBinary/lib/python2.7/site-packages/GDALOGRUtilities/__init__.py
148+
RiverObsBinary/lib/python2.7/site-packages/GDALOGRUtilities/__init__.pyc
149+
RiverObsBinary/lib/python2.7/site-packages/GDALOGRUtilities/GDALutilities.so
150+
RiverObsBinary/lib/python2.7/site-packages/GDALOGRUtilities/GeodeticPath.so
151+
RiverObsBinary/lib/python2.7/site-packages/GDALOGRUtilities/CoordinateTransformations.so
152+
RiverObsBinary/lib/python2.7/site-packages/GDALOGRUtilities/OGRWriter.so
153+
RiverObsBinary/lib/python2.7/site-packages/GDALOGRUtilities/version.py
154+
RiverObsBinary/lib/python2.7/site-packages/GDALOGRUtilities/GDALLatLonLayer.so
155+
RiverObsBinary/lib/python2.7/site-packages/GDALOGRUtilities/OGR2Shapely.so
156+
RiverObsBinary/lib/python2.7/site-packages/GDALOGRUtilities/GDALInfo.so
157+
RiverObsBinary/lib/python2.7/site-packages/GDALOGRUtilities/version.pyc
158+
RiverObsBinary/lib/python2.7/site-packages/GeometryDataBase/
159+
RiverObsBinary/lib/python2.7/site-packages/GeometryDataBase/__init__.py
160+
RiverObsBinary/lib/python2.7/site-packages/GeometryDataBase/__init__.pyc
161+
RiverObsBinary/lib/python2.7/site-packages/GeometryDataBase/version.py
162+
RiverObsBinary/lib/python2.7/site-packages/GeometryDataBase/GeometryDataBase.so
163+
RiverObsBinary/lib/python2.7/site-packages/GeometryDataBase/version.pyc
164+
RiverObsBinary/lib/python2.7/site-packages/GWDLR/
165+
RiverObsBinary/lib/python2.7/site-packages/GWDLR/__init__.py
166+
RiverObsBinary/lib/python2.7/site-packages/GWDLR/__init__.pyc
167+
RiverObsBinary/lib/python2.7/site-packages/GWDLR/GWDLR2shape.so
168+
RiverObsBinary/lib/python2.7/site-packages/GWDLR/version.py
169+
RiverObsBinary/lib/python2.7/site-packages/GWDLR/GWDLR.so
170+
RiverObsBinary/lib/python2.7/site-packages/GWDLR/version.pyc
171+
RiverObsBinary/lib/python2.7/site-packages/RDF/
172+
RiverObsBinary/lib/python2.7/site-packages/RDF/__init__.py
173+
RiverObsBinary/lib/python2.7/site-packages/RDF/__init__.pyc
174+
RiverObsBinary/lib/python2.7/site-packages/RDF/RDF_to_class.so
175+
RiverObsBinary/lib/python2.7/site-packages/RDF/version.py
176+
RiverObsBinary/lib/python2.7/site-packages/RDF/MRDF.so
177+
RiverObsBinary/lib/python2.7/site-packages/RDF/ExecuteRDF.so
178+
RiverObsBinary/lib/python2.7/site-packages/RDF/RDF.so
179+
RiverObsBinary/lib/python2.7/site-packages/RDF/version.pyc
180+
RiverObsBinary/lib/python2.7/site-packages/RiverObs/
181+
RiverObsBinary/lib/python2.7/site-packages/RiverObs/__init__.py
182+
RiverObsBinary/lib/python2.7/site-packages/RiverObs/__init__.pyc
183+
RiverObsBinary/lib/python2.7/site-packages/RiverObs/LatLonRegion.so
184+
RiverObsBinary/lib/python2.7/site-packages/RiverObs/RiverNode.so
185+
RiverObsBinary/lib/python2.7/site-packages/RiverObs/version.py
186+
RiverObsBinary/lib/python2.7/site-packages/RiverObs/ReachPreProcessor.so
187+
RiverObsBinary/lib/python2.7/site-packages/RiverObs/RiverReach.so
188+
RiverObsBinary/lib/python2.7/site-packages/RiverObs/IteratedRiverObs.so
189+
RiverObsBinary/lib/python2.7/site-packages/RiverObs/ReachExtractor.so
190+
RiverObsBinary/lib/python2.7/site-packages/RiverObs/RiverObs.so
191+
RiverObsBinary/lib/python2.7/site-packages/RiverObs/WidthDataBase.so
192+
RiverObsBinary/lib/python2.7/site-packages/RiverObs/FitRiver.so
193+
RiverObsBinary/lib/python2.7/site-packages/RiverObs/RiverReachWriter.so
194+
RiverObsBinary/lib/python2.7/site-packages/RiverObs/version.pyc
195+
RiverObsBinary/lib/python2.7/site-packages/SWOTRiver/
196+
RiverObsBinary/lib/python2.7/site-packages/SWOTRiver/__init__.py
197+
RiverObsBinary/lib/python2.7/site-packages/SWOTRiver/__init__.pyc
198+
RiverObsBinary/lib/python2.7/site-packages/SWOTRiver/SWOTL2.so
199+
RiverObsBinary/lib/python2.7/site-packages/SWOTRiver/version.py
200+
RiverObsBinary/lib/python2.7/site-packages/SWOTRiver/version.pyc
201+
RiverObsBinary/lib/python2.7/site-packages/SWOTRiver/EstimateSWOTRiver.so
202+
RiverObsBinary/lib/python2.7/site-packages/SWOTRiver/SWOTRiverEstimator.so
203+
RiverObsBinary/lib/python2.7/site-packages/toggle_input/
204+
RiverObsBinary/lib/python2.7/site-packages/toggle_input/__init__.py
205+
RiverObsBinary/lib/python2.7/site-packages/toggle_input/__init__.pyc
206+
RiverObsBinary/lib/python2.7/site-packages/toggle_input/toggle_input.so
207+
RiverObsBinary/lib/python2.7/site-packages/toggle_input/version.py
208+
RiverObsBinary/lib/python2.7/site-packages/toggle_input/version.pyc
209+
210+
The files are owned by erodrigu. To correct this (which should
211+
not matter) you can do
212+
213+
chown -R user RiverObsBinary
214+
215+
where user is your user name.

doc/sphinx/RiverObs/API.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ Contents:
1212
GDALOGRUtilities
1313
GWDLR
1414
GeometryDataBase
15+
PyRivWidth
1516
RDF
1617
RiverObs
1718
SWOTRiver
1819

19-
2020
Indices and tables
2121
==================
2222

doc/sphinx/RiverObs/Centerline.rst

+14-11
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
1-
Centerline Package
1+
Centerline package
22
==================
33

4-
:mod:`Centerline` Package
5-
-------------------------
4+
Submodules
5+
----------
66

7-
.. automodule:: Centerline
7+
Centerline.Centerline module
8+
----------------------------
9+
10+
.. automodule:: Centerline.Centerline
811
:members:
912
:undoc-members:
1013
:show-inheritance:
1114

12-
:mod:`Centerline` Module
13-
------------------------
15+
Centerline.version module
16+
-------------------------
1417

15-
.. automodule:: Centerline.Centerline
18+
.. automodule:: Centerline.version
1619
:members:
1720
:undoc-members:
1821
:show-inheritance:
1922

20-
:mod:`version` Module
21-
---------------------
2223

23-
.. automodule:: Centerline.version
24+
Module contents
25+
---------------
26+
27+
.. automodule:: Centerline
2428
:members:
2529
:undoc-members:
2630
:show-inheritance:
27-

0 commit comments

Comments
 (0)