Skip to content

Commit 66dc6c2

Browse files
author
Scisco
committed
Merge pull request #141 from developmentseed/develop
release v0.10.0
2 parents c67c0e7 + 1175020 commit 66dc6c2

21 files changed

+385
-189
lines changed

.travis.yml

Lines changed: 20 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,27 @@
1-
language: python
1+
sudo: required
22

3-
sudo: false
4-
5-
cache:
6-
directories:
7-
- ~/.cache/pip
3+
services:
4+
- docker
85

96
env:
107
global:
11-
- PIP_WHEEL_DIR=$HOME/.cache/pip/wheels
12-
- PIP_FIND_LINKS=file://$HOME/.cache/pip/wheels
13-
14-
virtualenv:
15-
system_site_packages: true
16-
17-
addons:
18-
apt:
19-
packages:
20-
- libgdal1h
21-
- gdal-bin
22-
- libgdal-dev
23-
- libatlas-dev
24-
- libatlas-base-dev
25-
- gfortran
26-
- python-numpy
27-
- python-scipy
28-
29-
python:
30-
- '2.7'
31-
32-
before_install:
33-
- pip install -U pip
34-
- pip install wheel
8+
- secure: QsF7ignSAbH/WCyO6v9bw1exmCWDQR0DqmHkwJ5swc9N44OOOzbWGsaMSYB5y9h+d70fz4arbxQDhsk2KvX4Zd1/2YIMOrIsbgDYeegpkhVPgyQNPKmVqiX+Tb47t1C/TgkC7A07tiPpuefYcLNMZ8gzz7oKhh1UKapYftqzZ+g=
9+
- secure: HxjeKWSROBQYy9NuNkgQeaK1ubTF8vH5FcR8nUTSAYxxw/qOzKpqkiq4BcJSRcIwTbkvaBf4MshLGVOxPjMeyJFe06UD/6LvTUGS3bwdya+m0RFjHe5/3wzS8/MxLbTlvgzmuGLLKOsJjXCi9eQQchKfHv+QuhGxhYVLQpnbU9E=
10+
- secure: Zq0Z2UA2A7/ieXX8XoMweClJTp8hiVBxoQ1ylJYNd7qsRSk0QvZhn62db5/x48L9S1kELk0sG64q5Pf96/RPLpdjkBUAdEkS7qF+QOvRvAv2woNEHutjlMUvP6jwYGbug+AORg76btZ57OwMOi3aTkagQMMKnokfo7KGbffy0Jo=
11+
3512

3613
install:
37-
- "pip wheel -r requirements/dev.txt"
38-
- "pip install -r requirements/dev.txt"
14+
- pip install --user twine
15+
16+
before_script:
17+
- docker build --file="travis-dockerfile" -t "developmentseed/landsat-util:travis" .
3918

4019
script:
41-
- nosetests
20+
- docker run --rm -it -v "$(pwd)":/test -w /test developmentseed/landsat-util:travis nosetests
21+
22+
after_success:
23+
- docker login -e ${DOCKER_EMAIL} -u ${DOCKER_USER} -p ${DOCKER_PASSWORD}
24+
- docker push developmentseed/landsat-util:travis
4225

4326
deploy:
4427
provider: pypi
@@ -47,13 +30,14 @@ deploy:
4730
secure: WtawFW/999XYszmZfj1Qk82l00OSyP2JBVOOGCERrW1gVO7MYtYsgP31HKRSzNTCTHJNVDpdK4WZWY6zPQqC3l2UfWYYsvRn0hCoI8AJxE5VCUEg6Ccpe6fMJuhp1pq6Zy7yrfBSZcOB9aqSHLBJsunD2o3mNlTC8WV8vNK74ck=
4831
on:
4932
repo: developmentseed/landsat-util
50-
branch: master
33+
branch:
34+
- master
35+
- develop
5136

5237
after_deploy:
5338
if [ "$TRAVIS_BRANCH" == "master" ]; then
5439
echo "Start Docker Hub Push"
55-
VER=$(python -c "import landsat; print landsat.__version__")
40+
VER=$(docker run --rm -it -v "$(pwd)":/test -w /test developmentseed/landsat-util:travis python landsat/landsat.py --version | sed s/[^0-9\.]//g)
5641
docker build . -t developmentseed/landsat-util:$VER
57-
docker login -e ${DOCKER_EMAIL} -u ${DOCKER_USER} -p ${DOCKER_PASSWORD}
5842
docker push developmentseed/landsat-util:$VER
5943
fi

AUTHORS.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,5 @@ Scisco https://github.com/scisco
55
Marc Farra https://github.com/kamicut
66
Drew Bollinger https://github.com/drewbo
77
Alex Kappel https://twitter.com/alex_kappel
8-
Eric Miller https://github.com/millerEric
9-
Yuriy Czoli https://github.com/YKCzoli
108

119
See also https://github.com/developmentseed/landsat-util/graphs/contributors.

CHANGES.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
Changes
22
=======
33

4+
0.10.0 (2016-01-05)
5+
------------------
6+
- add support for bare json output
7+
- faster travis tests
8+
- add street search
9+
- apply ndvigrey to process and download
10+
- fixes #127
11+
- update commands help file
12+
- apply pansharpen and ndvi only if -p is used
13+
- download zip if bands are not specified
14+
- better handle url joins to a fix error on Windows
15+
- other small bug fixes
16+
417
0.9.1 (2015-10-26)
518
------------------
619
- Add missing package (polyline) to setup.py

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ ADD landsat /usr/local/lib/python2.7/dist-packages/landsat
55
ADD bin/landsat /usr/local/bin/
66
ADD . /landsat
77
RUN cd /landsat && pip install -r requirements/docker.txt
8-

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ recursive-exclude * __pycache__
77
recursive-exclude * *.py[co]
88

99
recursive-include docs *.rst conf.py Makefile make.bat
10-
recursive-include landsat/tests/samples *.tar.bz2
10+
recursive-include landsat/maps *.txt

README.rst

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,32 @@ Landsat-util is a command line utility that makes it easy to search, download, a
2121
Docs
2222
+++++
2323

24-
For full documentation visit: http://landsat-util.readthedocs.org/
24+
For full documentation visit: https://pythonhosted.org/landsat-util/
2525

2626
To run the documentation locally::
2727

2828
$ pip install -r requirements/dev.txt
2929
$ cd docs
3030
$ make html
3131

32+
Travis Tests
33+
++++++++++++
34+
35+
To speed up testing on travis, we use a docker image.
36+
37+
To test with docker image locally run:
38+
39+
.. code::
40+
41+
$ docker run --rm -it -v "$(pwd)":/test developmentseed/landsat-util:travis nosetests
42+
3243
Recently Added Features
3344
+++++++++++++++++++++++
3445

35-
- Add longitude latitude search
36-
- Improve console output
37-
- Add more color options such as false color, true color, etc.
46+
- Improved pansharpening
47+
- Use BQA bands for cloud/snow coverage and use in color correction
48+
- Add support for different NDVI color maps (three included)
49+
- Add support for image clipping using the new `--clip` flag
3850

3951
Change Log
4052
++++++++++

docs/commands.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Commands
2020

2121
--lon Longitude
2222

23+
--address Street address
24+
2325
-l LIMIT, --limit LIMIT
2426
Search return results limit default is 10
2527

@@ -35,6 +37,8 @@ Commands
3537
-c CLOUD, --cloud CLOUD
3638
Maximum cloud percentage. Default: 20 perct
3739

40+
--json Returns a bare JSON response
41+
3842
-h, --help Show this help message and exit
3943

4044
Download:
@@ -60,6 +64,8 @@ Commands
6064

6165
--ndvi Calculates NDVI and produce a RGB GTiff with seperate colorbar.
6266

67+
--ndvigrey Calculates NDVI and produce a greyscale GTiff.
68+
6369
--clip Clip the image with the bounding box provided. Values must be in WGS84 datum,
6470
and with longitude and latitude units of decimal degrees separated by comma.
6571
Example: --clip -346.06658935546875,49.93531194616915,-345.4595947265625,50.2682767372753

docs/overview.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ Search by latitude and longitude::
3636

3737
$: landsat search --lat 38.9004204 --lon -77.0237117
3838

39+
Search by latitude and longitude with pure json output::
40+
41+
$: landsat search --lat 38.9004204 --lon -77.0237117 --json
3942

4043
Download
4144
++++++++
@@ -50,7 +53,7 @@ Download images by their custom sceneID, which you get from landsat search::
5053

5154
$: landsat download LC80090452014008LGN00
5255

53-
Download only band 4, 3 and 2 for a particular sceneID::
56+
By default landsat-util downloads the full zip file from Google Storage unless you specify the bands or run an image processing right after download. For example to download only band 4, 3 and 2 for a particular sceneID run::
5457

5558
$: landsat download LC80090452014008LGN00 --bands 432
5659

docs/todo.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
To Do List
22
++++++++++
33

4-
- Add Sphinx Documentation
5-
- Add capacity for NDVI output
64
- Add alternative projections (currently only option is default web-mercator; EPSG: 3857)
7-
- Connect search to Google Address API
85
- Include 16-bit image variant in output
96
- Add support for color correct looping over multiple compressed inputs (currently just 1)

landsat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.9.1'
1+
__version__ = '0.10.0'

0 commit comments

Comments
 (0)