ost.helpers.asf

Functions for connecting and downloading from Alaska Satellite Facility

Functions

asf_download

This function will download S1 products from ASF mirror. :param url: the url to the file you want to download :param filename: the absolute path to where the downloaded file should be written to :param uname: ESA's scihub username :param pword: ESA's scihub password :return:.

asf_download_parallel

ask_credentials

Interactive function asking the user for ASF credentials

batch_download

check_connection

Check if a connection with scihub can be established

ost.helpers.asf.asf_download(url, filename, uname, pword)[source]

This function will download S1 products from ASF mirror. :param url: the url to the file you want to download :param filename: the absolute path to where the downloaded file should

be written to

Parameters
  • uname – ESA’s scihub username

  • pword – ESA’s scihub password

Returns

ost.helpers.asf.asf_download_parallel(argument_list)[source]
ost.helpers.asf.ask_credentials()[source]

Interactive function asking the user for ASF credentials

Returns

tuple of username and password

Return type

tuple

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

Check if a connection with scihub can be established

Parameters
  • uname

  • pword

Returns