Skip to main content

Downloader for the Global Surface Water Data of the Copernicus Programme

Project description

Downloader for the Global Surface Water data of the Copernicus Programme.

It is based on the original downloadWaterData.py.

https://img.shields.io/pypi/pyversions/download_water_data.svg https://img.shields.io/pypi/v/download-water-data.svg https://img.shields.io/github/issues/mentaljam/download_water_data.svg

Requirements

This tool runs on Windows/Mac/Unix and requires Python version 2 or 3.

Usage

Install with pip

  • Install the tool with python -m pip install download_water_data

  • Run the tool with python -m download_water_data <arguments> or just download_water_data <arguments> if the Python Scripts directory is in your system PATH

Download without installing

  • Download the latest download_water_data.pyz file

  • Open a terminal or console

  • Run the tool with python download_water_data.pyz <arguments>

To interrupt tool execution press Ctrl+C.

Arguments

Possible tool arguments and options can be listed with the -h option:

$ download_water_data -h

usage: download_water_data [-h] [-v] [-d PATH] [-r {1_0,1_1,1_1_2019,1_3_2020,1_4_2021}] [-a] [-f] [DS ...]

Full Download Script for Global Surface Water Data.

positional arguments:
  DS                    one or more datasets names to download (occurrence,
                        change, seasonality, recurrence, transitions, extent),
                        use the "-a" option to download all the datasets

options:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -d PATH, --directory PATH
                        destination directory where to download the data (by
                        default the current working directory is used)
  -r {1_0,1_1,1_1_2019,1_3_2020,1_4_2021}, --revision {1_0,1_1,1_1_2019,1_3_2020,1_4_2021}
                        data revision (default is 1_4_2021)
  -a, --all             download all datasets (default is false)
  -f, --force           rewrite existing files (default is false)

Examples

To download the occurrence and change datasets run

download_water_data occurrence change

To download all the datasets run

download_water_data -a

To change the destination directory add the -d option

download_water_data -a -d 'download/path'

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

download_water_data-0.5.0.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

download_water_data-0.5.0-py3-none-any.whl (6.0 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