Skip to main content

Fetch Landsat & Sentinel Data from google cloud

Project description

FeLS - Fetch Landsat & Sentinel Data from google cloud

Find and download Landsat and Sentinel-2 data from the public Google Cloud

The script downloads the index.csv file listing all available Landsat or Sentinel-2 tiles, then searches the file for one scene that matches user parameters. Once found, it downloads the image files.

Small demo video: https://youtu.be/8zCs0nxl-rU

Developed with/for Python 2.7 and 3.3+ You may either install the package through pip:

pip install fels

or if using a conda environment, the following steps are recommended to create and install dependencies: conda create --name fetchLSGC python=3 Switch to the new environment (source activate fetchLSGC in Linux), and install the gdal dependency from conda-forge conda config --add channels conda-forge conda install gdal

Usage examples:

  • LINUX:

fels 203031 OLI_TIRS 2015-01-01 2015-06-30 -c 30 -o ~/LANDSAT --latest --outputcatalogs /tmp

fels 44UPU S2 2016-10-01 2016-12-31 -o ~/SENTINEL2 -l --outputcatalogs /tmp

  • WINDOWS:

fels 203031 OLI_TIRS 2015-01-01 2015-06-30 -c 30 -o %TEMP%\LANDSAT --latest --outputcatalogs %TEMP%\LANDSAT

fels 44UPU S2 2016-10-01 2016-12-31 -o %TEMP%\SENTINEL2 -l --outputcatalogs %TEMP%\SENTINEL2

Options:

-h, --help show this help message and exit

-s SCENE, --scene=SCENE TileID of scene (ex. 198030 for Landsat or 44UPU for Sentinel2)

-d START_DATE, --start_date=START_DATE start date, fmt('2013-12-23')

-f END_DATE, --end_date=END_DATE end date, fmt('2013-12-23')

-o OUTPUT, Where to download files

-c CLOUDS, --cloudcover=CLOUDS Set a limit to the cloud cover of the image

-b BIRD, --sat=BIRD Which satellite are you looking for. Available options are: TM, ETM, OLI_TIRS, S2

-l LIST, Just list the urls found, don't download

-e EXCLUDEPARTIAL, Exclude partial tiles - only for Sentinel-2

--latest LATEST, Choose the most recent image(s) that meet(s) the search criteria

--noinspire, Do not rename output image folder to the title collected from the inspire.xml file (only for S2 datasets)

--overwrite, Overwrite files if existing locally

--outputcatalogs=OUTPUTCATALOGS Where to download metadata catalog files

Run the script with -h switch for more help usage.

You can read more about the public google access to Landsat and Sentinel-2 data here: https://cloud.google.com/storage/docs/public-datasets/

Contributors (THANK YOU!):

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

FeLS-1.3.5.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

FeLS-1.3.5-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file FeLS-1.3.5.tar.gz.

File metadata

  • Download URL: FeLS-1.3.5.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.3

File hashes

Hashes for FeLS-1.3.5.tar.gz
Algorithm Hash digest
SHA256 02ec2be788a1f5d26b6007e01e33a92603d1e197aeeee4a5e414667a6657156b
MD5 b2613f96ef8b0b1d84c33be9ba2970f3
BLAKE2b-256 ef39b8c0060a9b7b42ac4014c1f60784718bfc466521fda7fb8d04ab26021751

See more details on using hashes here.

File details

Details for the file FeLS-1.3.5-py3-none-any.whl.

File metadata

  • Download URL: FeLS-1.3.5-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.3

File hashes

Hashes for FeLS-1.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3eb2eaa524755a7104a0dba1e7d4ced6a7078c8fdaeb08e92ec99d117f1f014b
MD5 0a31089111aa8faa8b279fd69210a82b
BLAKE2b-256 7d15cfa0daabce8d291a5734bd9d05afff644e2605eb9cb0c72088a693bf8e87

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