Skip to content

A Python module that downloads images from Landsat 5,Landsat 7,Landsat 8. Modules uses the ArcGIS Rest Api for Image Server. Parm's like Raster functions, and bounding box are required.

License

Notifications You must be signed in to change notification settings

jnordling/landsatlook-py

Repository files navigation

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"
    }
});

`

About

A Python module that downloads images from Landsat 5,Landsat 7,Landsat 8. Modules uses the ArcGIS Rest Api for Image Server. Parm's like Raster functions, and bounding box are required.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published