download_data

synphot.utils.download_data(path_root, verbose=True, dry_run=False)[source]

Download synphot data files to given root directory or the astropy cache. Download is skipped if a data file already exists.

Warning

Downloading data to astropy cache only is not recommended if you plan to provide a custom synphot.cfg.

Parameters:
path_rootstr or None

Root directory for data files. If None, download to the astropy cache 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.

Returns:
file_listlist of str

A list of downloaded files.

Raises:
OSError

Problem with directory.