download_data¶
- synphot.utils.download_data(path_root, verbose=True, dry_run=False)[source]¶
Download
synphotdata files to given root directory or theastropycache. Download is skipped if a data file already exists.Warning
Downloading data to
astropycache only is not recommended if you plan to provide a customsynphot.cfg.- Parameters:
- path_rootstr or
None Root directory for data files. If
None, download to theastropycache location instead of a specific directory.- verbosebool
Print extra information to screen.
- dry_runbool
Go through the logic but skip the actual download. This would return a list of files that would have been downloaded without network calls. The sub-directories would still be created regardless. Use this option for debugging or testing.
- path_rootstr or
- Returns:
- file_listlist of str
A list of downloaded files.
- Raises:
- OSError
Problem with directory.