-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from developmentseed/develop
version 0.9.0
- Loading branch information
Showing
27 changed files
with
1,643 additions
and
389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
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 | ||
RUN apt-get install --yes python-pip python-skimage python-numpy python-scipy libgdal-dev libatlas-base-dev gfortran libfreetype6-dev libglib2.0-dev zlib1g-dev python-pycurl | ||
ADD landsat /usr/local/lib/python2.7/dist-packages/landsat | ||
ADD bin/landsat /usr/local/bin/ | ||
ADD . /landsat | ||
RUN cd /landsat && pip install -r requirements/docker.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
Commands | ||
======== | ||
|
||
:: | ||
|
||
usage: landsat [-h] [--version] {search,download,process} ... | ||
|
||
Landsat-util is a command line utility that makes it easy to | ||
search, download, and process Landsat imagery. | ||
|
||
Commands: | ||
Search: | ||
landsat.py search [-p --pathrow] [--lat] [--lon] [-l LIMIT] [-s START] [-e END] [-c CLOUD] [-h] | ||
|
||
optional arguments: | ||
-p, --pathrow Paths and Rows in order separated by comma. Use quotes "001,003". | ||
Example: path,row,path,row 001,001,190,204 | ||
|
||
--lat Latitude | ||
|
||
--lon Longitude | ||
|
||
-l LIMIT, --limit LIMIT | ||
Search return results limit default is 10 | ||
|
||
-s START, --start START | ||
Start Date - Most formats are accepted e.g. | ||
Jun 12 2014 OR 06/12/2014 | ||
|
||
-e END, --end END End Date - Most formats are accepted e.g. | ||
Jun 12 2014 OR 06/12/2014 | ||
|
||
--latest N Returns the N latest images within the last 365 days. | ||
|
||
-c CLOUD, --cloud CLOUD | ||
Maximum cloud percentage. Default: 20 perct | ||
|
||
-h, --help Show this help message and exit | ||
|
||
Download: | ||
landsat download sceneID [sceneID ...] [-h] [-b --bands] | ||
|
||
positional arguments: | ||
sceneID Provide Full sceneIDs. You can add as many sceneIDs as you wish | ||
|
||
Example: landast download LC81660392014196LGN00 | ||
|
||
optional arguments: | ||
-b --bands If you specify bands, landsat-util will try to download the band from S3. | ||
If the band does not exist, an error is returned | ||
|
||
-h, --help Show this help message and exit | ||
|
||
-d, --dest Destination path | ||
|
||
-p, --process Process the image after download | ||
|
||
--pansharpen Whether to also pansharpen the processed image. | ||
Pansharpening requires larger memory | ||
|
||
--ndvi Calculates NDVI and produce a RGB GTiff with seperate colorbar. | ||
|
||
--clip Clip the image with the bounding box provided. Values must be in WGS84 datum, | ||
and with longitude and latitude units of decimal degrees separated by comma. | ||
Example: --clip -346.06658935546875,49.93531194616915,-345.4595947265625,50.2682767372753 | ||
|
||
-u --upload Upload to S3 after the image processing completed | ||
|
||
--key Amazon S3 Access Key (You can also be set AWS_ACCESS_KEY_ID as | ||
Environment Variables) | ||
|
||
--secret Amazon S3 Secret Key (You can also be set AWS_SECRET_ACCESS_KEY as | ||
Environment Variables) | ||
|
||
--bucket Bucket name (required if uploading to s3) | ||
|
||
--region URL to S3 region e.g. s3-us-west-2.amazonaws.com | ||
|
||
--force-unzip Force unzip tar file | ||
|
||
Process: | ||
landsat.py process path [-h] [-b --bands] [-p --pansharpen] | ||
|
||
positional arguments: | ||
path Path to the landsat image folder or zip file | ||
|
||
optional arguments: | ||
-b --bands Specify bands. The bands should be written in sequence with no spaces | ||
Default: Natural colors (432) | ||
Example --bands 432 | ||
|
||
--pansharpen Whether to also pansharpen the process image. | ||
Pansharpening requires larger memory | ||
|
||
--ndvi Calculates NDVI and produce a RGB GTiff with seperate colorbar. | ||
|
||
--ndvigrey Calculates NDVI and produce a greyscale GTiff. | ||
|
||
--clip Clip the image with the bounding box provided. Values must be in WGS84 datum, | ||
and with longitude and latitude units of decimal degrees separated by comma. | ||
Example: --clip -346.06658935546875,49.93531194616915,-345.4595947265625,50.2682767372753 | ||
|
||
-v, --verbose Show verbose output | ||
|
||
-h, --help Show this help message and exit | ||
|
||
-u --upload Upload to S3 after the image processing completed | ||
|
||
--key Amazon S3 Access Key (You can also be set AWS_ACCESS_KEY_ID as | ||
Environment Variables) | ||
|
||
--secret Amazon S3 Secret Key (You can also be set AWS_SECRET_ACCESS_KEY as | ||
Environment Variables) | ||
|
||
--bucket Bucket name (required if uploading to s3) | ||
|
||
--region URL to S3 region e.g. s3-us-west-2.amazonaws.com | ||
|
||
--force-unzip Force unzip tar file | ||
|
||
positional arguments: | ||
{search,download,process} | ||
Landsat Utility | ||
search Search Landsat metdata | ||
download Download images from Google Storage | ||
process Process Landsat imagery | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
--version show program's version number and exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
landsat | ||
======= | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
landsat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.8.0' | ||
__version__ = '0.9.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.