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.

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.1.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

parse_landsat_xml-0.1.1-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

Supported by

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