ost.helpers.peps

Functions for connecting and downloading from CNES Peps server

Functions

ask_credentials

Interactive function asking the user for CNES' Peps credentials

batch_download

check_connection

Check if a connection with CNES Pepscan be established

connect

Generates an opener for the Copernicus apihub/dhus

peps_download

Single scene download function for Copernicus scihub/apihub

ost.helpers.peps.ask_credentials()[source]

Interactive function asking the user for CNES’ Peps credentials

Returns

tuple of username and password

Return type

tuple

ost.helpers.peps.batch_download(inventory_df, download_dir, uname, pword, concurrent=10)[source]
ost.helpers.peps.check_connection(uname, pword)[source]

Check if a connection with CNES Pepscan be established

Parameters
  • uname

  • pword

Returns

ost.helpers.peps.connect(uname=None, pword=None)[source]

Generates an opener for the Copernicus apihub/dhus

Parameters
  • uname (str) – username of ONDA Dias

  • pword (str) – password of ONDA Dias

Returns

an urllib opener instance for Copernicus’ scihub

Return type

opener object

ost.helpers.peps.peps_download(argument_list)[source]

Single scene download function for Copernicus scihub/apihub

Parameters

argument_list

a list with 4 entries (this is used to enable parallel execution)

argument_list[0]: product’s url argument_list[1]: local path for the download argument_list[2]: username of Copernicus’ scihub argument_list[3]: password of Copernicus’ scihub

Returns