Skip to main content

Description

The landsat2geojson package is written in python and uses the EarthExplorer and Overpass portal interface to search, download, and process scenes from Landsat Collections via the command line.

Requirements

landsat2geojson uses the landsatxplore package to connect and download the landsat images, the credentials can be obtained in Earth Explorer Page

--username and --password can be provided as command-line options or as environment variables:

export LANDSATXPLORE_USERNAME=<your_username>
export LANDSATXPLORE_PASSWORD=<your_password>

Installation

repository

the installation from the repository

git clone https://github.com/yunica/landsat2geojson.git
cd landsat2geojson
pip install .

docker

build

export LANDSATXPLORE_USERNAME=<your_username>
export LANDSATXPLORE_PASSWORD=<your_password>

docker-compose build 

run

docker run  --rm -v ${PWD}:/mnt \
  -e LANDSATXPLORE_USERNAME=$LANDSATXPLORE_USERNAME \
  -e LANDSATXPLORE_PASSWORD=$LANDSATXPLORE_PASSWORD \
  landsat2geojson:v1 \
  landsat2geojson --geojson_file=test.geojson --data_folder=data/ --geojson_output=data/salida123.geojson  

or

docker run  --rm -v ${PWD}:/mnt landsat2geojson:v1 \
  landsat2geojson -u=<LANDSATXPLORE_USERNAME> -p=<LANDSATXPLORE_PASSWORD> --geojson_file=test.geojson --data_folder=data/ --geojson_output=data/salida123.geojson  

Usage

help

you can review the parameters menu with the param --help

landsat2geojson --help
Usage: landsat2geojson [OPTIONS]

Options:
  -u, --username TEXT     EarthExplorer username.
  -p, --password TEXT     EarthExplorer password.
  --geojson_file TEXT     Pathfile from geojson input  [required]
  --data_folder TEXT      Path from download data
  --lansat_index [WATER]  Landsar normalized index
  --geojson_output TEXT   Pathfile from geojson output  [required]
  --help                  Show this message and exit.

example

landsat2geojson --geojson_file=area.geojson   --data_folder=data/  --geojson_output=data/output_data.geojson     

Metadata

Release files for landsat2geojson 0.0.3

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

Source distribution (sdist)

Source distribution for landsat2geojson 0.0.3
File Size Uploaded
landsat2geojson-0.0.3.tar.gz 11.0 kB Details

Release files / landsat2geojson-0.0.3.tar.gz

Download URL landsat2geojson-0.0.3.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8dffb33e6fb6903b5fe722bf2e3bcf001ea131529f87085272435bd0aca156bc
BLAKE2b-256 checksum
How to use checksums
42f2b1d0a2b8fe4911ac235902b1903c8691cbb8d71a2114f7913b5b2b75fe12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

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