multi_psf_retriever

acstools.focus_diverse_epsfs.multi_psf_retriever(input_list, download_location, num_workers=8)

Function to batch query the API on AWS API Gateway for multiple ePSFs simultaneously.

Note

This function requires an optional dask dependency to be installed.

Parameters:
input_listlist or str

If a list is given, it must contain a list of rootnames. If a string is given, it must be a text file with one rootname per line.

download_locationstr

Directory name where the file will be downloaded to. It must exist and you must have write permission to it.

num_workersint

Max number of workers for dask.compute().

Returns:
resultslist of str

List of downloaded ePSF FITS files.