Skip to main content

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

Project description

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <http://unlicense.org/>

Description: ## Parse Bulk Landsat Metadata

USGS conveniently hosts a bulk metadata service located [here](https://www.usgs.gov/land-resources/nli/landsat/bulk-metadata-service).

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](https://earthexplorer.usgs.gov/). Users can search by date-range, cloud cover percentage, and whether a lat/lon point is within the scene.

I’ve also included a quick script that uses [USGSDownload](https://github.com/lucaslamounier/USGSDownload/) to download the scenes from the output .txt file.

A USGS EROS [account](https://ers.cr.usgs.gov/login/) 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:

`commandline 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 `

Platform: UNKNOWN Classifier: Programming Language :: Python :: 3 Classifier: License :: Unlicense Classifier: Topic :: Landsat :: data conversion Description-Content-Type: text/markdown

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parse_landsat_xml-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

parse_landsat_xml-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file parse_landsat_xml-0.1.0.tar.gz.

File metadata

  • Download URL: parse_landsat_xml-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for parse_landsat_xml-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ab5a17eb5f92d9c0bb6ffcffb70b0cdcd9494ed5c775a27f06c2806c33401895
MD5 beea77ace2d8d35a7888b6b338875656
BLAKE2b-256 8a331d871b6c3db5a74381c545e2fca2e9fd267fe6362c5e306e0bcfee16d114

See more details on using hashes here.

File details

Details for the file parse_landsat_xml-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: parse_landsat_xml-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for parse_landsat_xml-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12a7131cccf9647b3ac5e08e071718ebfc4a21994fa53f07883f43bb87206ff6
MD5 a68969df32b7d63940a35948a5411656
BLAKE2b-256 c52417b8605be7b7f2f0114ea48c377d2966a303e2dd663a6759a8ea5e294bf4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page