parse-landsat-xml

Search bulk Landsat metadata files, and then download the resulting Landsat scenes.


Licenses
AFL-3.0/libselinux-1.0
Install
pip install parse-landsat-xml==0.1.1

Documentation

Parse Bulk Landsat Metadata

USGS conveniently hosts a bulk metadata service located here.

Less conveniently, you get a large metadata file with no way to parse it.

This project implements a CLI to parse the bulk metadata files and output .xml based on the user's search parameters. It also creates a .txt file with each Landsat sceneID for use with EarthExplorer. Users can search by date-range, cloud cover percentage, and whether a lat/lon point is within the scene.

A USGS EROS account is required if you want to download.

Usage

Flags:

-f filename 
-d YYYYMMDD_YYYYMMDD inclusive date range 
-c max acceptable cloud cover in scene
-b lat,lon boundary. the search only supports point based boundary.

Example Usage:

cd /filepath/to/bulkmetadata
parse_landsat_xml.py -f LANDSAT_8_C1.xml -d 20180101_20190101 -c 50 -b 12.114993-86.236176
download_from_scene_list.py