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_list (list 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_location (str) – Directory name where the file will be downloaded to. It must exist and you must have write permission to it.
num_workers (int) – Max number of workers for
dask.compute()
.
- Returns:
results – List of downloaded ePSF FITS files.
- Return type: