s2d2.download_S2_L1C_sample

Module Contents

Functions

get_random_sample_file(→ str)

provide a random zip-file name of the collection

_make_full_zenodo_url(→ str)

download_S2_L1C_scene(→ str)

unpack_S2_L1C_scene(→ str)

main(→ None)

Attributes

ZEONDO_URL

SAMPLES

s2d2.download_S2_L1C_sample.ZEONDO_URL = 'https://zenodo.org/records/5221412/files/'[source]
s2d2.download_S2_L1C_sample.SAMPLES = ['beijing.zip', 'berlin.zip', 'bogota.zip', 'cairo.zip', 'dakar.zip', 'dhaka.zip',...[source]
s2d2.download_S2_L1C_sample.get_random_sample_file() str[source]

provide a random zip-file name of the collection

Returns:

for example “beijing.zip”

Return type:

str

s2d2.download_S2_L1C_sample._make_full_zenodo_url(region_name: str) str[source]
s2d2.download_S2_L1C_sample.download_S2_L1C_scene(region_name: str, out_dir: str = None) str[source]
s2d2.download_S2_L1C_sample.unpack_S2_L1C_scene(zip_path: str, delete_zip: bool = True) str[source]
s2d2.download_S2_L1C_sample.main() None[source]