Skip to content

Commit 05f9224

Browse files
author
Daniel Buscombe
committed
Mon Jan 22 15:26:39 MST 2018
1 parent 0059330 commit 05f9224

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

PyHum/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
#"""
5050

51-
__version__ = '1.4.4'
51+
__version__ = '1.4.5'
5252

5353
#-----------------------------------------------------------------------------
5454
# Imports

PyHum/_pyhum_map.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ def make_map(e, n, t, d, dat_port, dat_star, data_R, pix_m, res, cs2cs_args, son
576576
#del grid_x, grid_y
577577

578578
try:
579+
from osgeo import gdal,ogr,osr
579580
proj = osr.SpatialReference()
580581
proj.ImportFromEPSG(int(cs2cs_args.split(':')[-1])) #26949)
581582
datout = np.squeeze(np.ma.filled(dat))

README.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ classify bed texture, and produce some maps on aerial photos and kml files for g
1414
2. export data
1515
3. carry out rudimentary radiometric corrections to data, and
1616
4. classify bed texture using the algorithm detailed in Buscombe, Grams, Smith, (2015) "Automated riverbed sediment classification using low-cost sidescan sonar", Journal of Hydraulic Engineering, 10.1061/(ASCE)HY.1943-7900.0001079, 06015019.
17-
5. produce some maps on aerial photos and kml files for google-earth
17+
5. produce some maps on GeoTIFF and kml files
1818

1919
The software is designed to read Humminbird data (.SON, .IDX, and .DAT files) and works on both sidescan and downward-looking echosounder data, where available.
2020

@@ -42,7 +42,7 @@ If you use PyHum in your published work, please cite the following papers:
4242
| Logan, UT 84322
4343
| hamill.daniel@gmail.com
4444

45-
Version: 1.4.2 | Revision: Jan, 2018
45+
Version: 1.4.5 | Revision: Jan, 2018
4646

4747

4848
### Please Read
@@ -99,32 +99,55 @@ Linux:
9999
```
100100
conda create --name pyhum python=2
101101
source activate pyhum
102+
conda install gdal
102103
conda install -c conda-forge basemap-data-hires -y
103104
conda install scipy numpy scikit-image
104105
pip install simplekml sklearn pandas dask
105106
pip install joblib toolz cython
106107
pip install pyresample
107108
pip install PyHum --no-deps #(or pip install git+https://github.com/dbuscombe-usgs/PyHum.git --no-deps)
108109
python -c"import PyHum;PyHum.dotest()"
110+
source deactivate pyhum
109111
```
110112

111113
Windows:
112114

113115
```
114116
conda create --name pyhum python=2
115117
activate pyhum
118+
conda install gdal
116119
conda install -c conda-forge basemap-data-hires -y
117120
conda install scipy numpy scikit-image
118121
pip install simplekml sklearn pandas dask
119122
pip install joblib toolz cython
120123
pip install pyresample==1.1.4
121124
pip install PyHum --no-deps #(or pip install git+https://github.com/dbuscombe-usgs/PyHum.git --no-deps)
125+
```
126+
127+
Then run the test, and finally deactivate the venv ::
128+
129+
```
122130
python -c"import PyHum;PyHum.dotest()"
131+
deactivate pyhum
132+
```
133+
134+
If you get gdal/osgeo/ogr/os errors, install GDAL (Windows only)::
135+
1. Go to: https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal
136+
2. Download GDAL‑2.2.3‑cp27‑cp27m‑win_amd64.whl
137+
3. install using pip:
138+
139+
```
140+
pip install GDAL‑2.2.3‑cp27‑cp27m‑win_amd64.whl
123141
```
124142

125143

126144
### Installing as a library accessible outside of virtual env
127145

146+
Prerequisite
147+
```
148+
pip install Cython
149+
```
150+
128151
1. From PyPI::
129152

130153
```

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def setupPackage():
196196
],
197197
keywords='sidescan sonar humminbird sediment substrate classification',
198198
author='Daniel Buscombe',
199-
author_email='dbuscombe@usgs.gov',
199+
author_email='daniel.buscombe@nau.edu',
200200
url='https://github.com/dbuscombe-usgs/PyHum',
201201
download_url ='https://github.com/dbuscombe-usgs/PyHum/archive/master.zip',
202202
install_requires=install_requires,

0 commit comments

Comments
 (0)