Skip to content

Latest commit

 

History

History
56 lines (47 loc) · 1.52 KB

README.md

File metadata and controls

56 lines (47 loc) · 1.52 KB

LandsatLook Py

A python util to download images from the USGS Image server for a bounding box of interest.

alt tag

Find your extent of interest

Web Extent Helper

Download or Clone Code

git clone https://github.com/jnordling/landsatlook-py.git

or Download

https://github.com/jnordling/landsatlook-py/archive/master.zip

Take a look at a sample.

Install

pip install -r requirements.txt

Import Module and set parameters

from landsatlook import LandSatLook

 landsatlook = LandSatLook({
    "url":"http://landsatlook.usgs.gov/arcgis/rest/services/LandsatLook/ImageServer/",
    "output_directory":"./test",
    "image_type":"jpg",
    "bounding_box":{
    "geometry":{
        "xmax":"-12762547.271635106",
        "xmin":"-12868030.370668506",
        "ymax":"4349313.935638487",
        "ymin":"4288011.438953858",
        "spatialReference":{
            "wkid":"102100"
            }
        }
    },
    "image_size":{
        "height":"802",
        "width":"1433"
    },
    "renderingRule":{
        "rasterFunction":"Stretch",
        "rasterFunctionArguments":{
            "StretchType":3,
            "NumberOfStandardDeviations":3,
            "DRA":"true"
        },
        "variableName":"Raster"
    }
});

`