Skip to main content

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.

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

Release files for parse-landsat-xml 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for parse-landsat-xml 0.1.1
File Size Uploaded
parse_landsat_xml-0.1.1.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for parse-landsat-xml 0.1.1
File Interpreter ABI Platform
parse_landsat_xml-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.1 kB

Release files / parse_landsat_xml-0.1.1.tar.gz

Download URL parse_landsat_xml-0.1.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7db583c173e7d8c0f8b9e5f89768c5ee43209f34d87506663451f5894fb54a71
BLAKE2b-256 checksum
How to use checksums
03bc16845b8a68aa71d8161deee342be60314c715d825f184bd00a806845858b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / parse_landsat_xml-0.1.1-py3-none-any.whl

Download URL parse_landsat_xml-0.1.1-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23850986c51cfb03ce93381ef15786a994b9874221317398299b31363d3f948f
BLAKE2b-256 checksum
How to use checksums
ad6a453b7119bf7295cc1e5f39fa89203638a991e8a40f013918258f35969306
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page