pyckles.utils module¶
- pyckles.utils.get_catalog_list(use_cache=True)[source]¶
Returns a list of catalogues based on the server index file
- Parameters:
- use_cachebool
Read a local copy (True) or get the list from the server (False)
- Returns:
- catalogsastropy.Table
A table with information about the available catalogues
- pyckles.utils.load_catalog(cat_name, use_cache=True)[source]¶
Loads a catalogue file into memory
If
use_cache=True
a local copy of the catalogue FITS file is loaded, otherwise the catalogue is downloaded from the server.To refresh the local copy of the catalogue file, call the
astropy
functionastropy.utils.data.clear_download_cache()
- Parameters:
- cat_namestr
A valid catalogue name
- use_cachebool
Default is True. If False, the catalogue file is fetched from the server
- Returns:
- catastropy.fits.HDUList
A handle to an astropy FITS object containing all the spectra and index information