download_data¶
-
synphot.utils.
download_data
(cdbs_root, verbose=True, dry_run=False)[source]¶ Download CDBS data files to given root directory. Download is skipped if a data file already exists.
Parameters: - cdbs_root : str
Root directory for CDBS data files.
- verbose : bool
Print extra information to screen.
- dry_run : bool
Go through the logic but skip the actual download. This would return a list of files that would have been downloaded without network calls. Use this option for debugging or testing.
Returns: - file_list : list of str
A list of downloaded files.
Raises: - OSError
Problem with directory.