ost.helpers.onda¶
Functions for downloading from ONDA Dias mirror.
Functions
Interactive function asking the user for ONDA Dias credentials |
|
Check if a connection with ONDA Dias can be established |
|
Generates an opener for the Copernicus apihub/dhus |
|
Single scene download function for Copernicus scihub/apihub |
- ost.helpers.onda.ask_credentials()[source]¶
Interactive function asking the user for ONDA Dias credentials
- Returns
tuple of username and password
- Return type
tuple
- ost.helpers.onda.check_connection(uname, pword)[source]¶
Check if a connection with ONDA Dias can be established
- Parameters
uname –
pword –
- Returns
- ost.helpers.onda.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.onda.onda_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 uuid argument_list[1]: local path for the download argument_list[2]: username of ONDA Dias argument_list[3]: password of ONDA Dias
- Returns