Skip to content

Commit

Permalink
Merge pull request #115 from developmentseed/aoi
Browse files Browse the repository at this point in the history
Add clip option
  • Loading branch information
Scisco committed Sep 30, 2015
2 parents 51b7ebe + d4d3ddd commit 6c92e50
Show file tree
Hide file tree
Showing 17 changed files with 393 additions and 58 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ deploy:
password:
secure: WtawFW/999XYszmZfj1Qk82l00OSyP2JBVOOGCERrW1gVO7MYtYsgP31HKRSzNTCTHJNVDpdK4WZWY6zPQqC3l2UfWYYsvRn0hCoI8AJxE5VCUEg6Ccpe6fMJuhp1pq6Zy7yrfBSZcOB9aqSHLBJsunD2o3mNlTC8WV8vNK74ck=
on:
tags: true
repo: developmentseed/landsat-util
branch: master

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:14.10
FROM ubuntu:14.04
RUN apt-get -y update
RUN apt-get install --yes python-pip python-numpy python-scipy libgdal-dev libatlas-base-dev gfortran libfreetype6-dev libglib2.0-dev zlib1g-dev python-pycurl
RUN pip install landsat-util
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,13 @@ docs:
$(MAKE) -C docs html
open docs/_build/html/index.html

docs-test:
python setup.py check --restructuredtext

test-release: clean
python setup.py sdist upload -r pypitest
python setup.py bdist_wheel upload -r pypitest

vagrant:
vagrant up
vagrant destroy

release: clean
python setup.py sdist upload
python setup.py bdist_wheel upload
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ Recently Added Features
- Add more color options such as false color, true color, etc.

Change Log
+++++++++
++++++++++

See `CHANGES.txt <CHANGES.rst>`_.
94 changes: 94 additions & 0 deletions docs/landsat.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
landsat package
===============

Submodules
----------

landsat.decorators module
-------------------------

.. automodule:: landsat.decorators
:members:
:undoc-members:
:show-inheritance:

landsat.downloader module
-------------------------

.. automodule:: landsat.downloader
:members:
:undoc-members:
:show-inheritance:

landsat.image module
--------------------

.. automodule:: landsat.image
:members:
:undoc-members:
:show-inheritance:

landsat.landsat module
----------------------

.. automodule:: landsat.landsat
:members:
:undoc-members:
:show-inheritance:

landsat.mixins module
---------------------

.. automodule:: landsat.mixins
:members:
:undoc-members:
:show-inheritance:

landsat.ndvi module
-------------------

.. automodule:: landsat.ndvi
:members:
:undoc-members:
:show-inheritance:

landsat.search module
---------------------

.. automodule:: landsat.search
:members:
:undoc-members:
:show-inheritance:

landsat.settings module
-----------------------

.. automodule:: landsat.settings
:members:
:undoc-members:
:show-inheritance:

landsat.uploader module
-----------------------

.. automodule:: landsat.uploader
:members:
:undoc-members:
:show-inheritance:

landsat.utils module
--------------------

.. automodule:: landsat.utils
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------

.. automodule:: landsat
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/modules.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
landsat
=======

.. toctree::
:maxdepth: 4

landsat
6 changes: 6 additions & 0 deletions docs/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ Process *and* pansharpen a downloaded image::

$: landsat process path/to/LC80090452014008LGN00.tar.bz --pansharpen

Clip an image before processing (The coordinates shows below show Prague)::

$: landsat process path/to/LC81920252015157LGN00.tar.bz --pansharpen --clip=-346.06658935546875,49.93531194616915,-345.4595947265625,50.2682767372753

Note: Values must be in WGS84 datum, and with longitude and latitude units of decimal degrees separated by comma.

A note on returned products
++++++++++++++++

Expand Down

0 comments on commit 6c92e50

Please sign in to comment.