spextra.libraries module#
Contains ldatabase library and subclasses.
- class spextra.libraries.ExtCurvesLibrary(name=None, curve_library=None)#
Bases:
LibraryLibrary of extinction curves.
- Attributes:
curve_commentsDeprecated feature.
curve_namesDeprecated feature.
curvesDeprecated feature.
data_typeDetermine data type based on known file extensions.
filesGet a list of all filenames in the library.
is_in_databaseReturn True if library is defined in the database instance.
- path
- url
Methods
clear_cache()Remove local copies of all files in the library.
download_all()Download the whole library.
get(k[,d])items()keys()values()- aliases = {'flux_col': 'extinction_column', 'flux_unit': 'extinction_unit', 'items': 'curves', 'wave_col': 'wave_column'}#
- property curve_comments#
Deprecated feature.
- property curve_names#
Deprecated feature.
- property curves#
Deprecated feature.
- db_dir = 'extinction_curves'#
- class spextra.libraries.FilterSystem(name=None, filter_system=None)#
Bases:
LibraryLibrary of filters comprising a filter system.
- Attributes:
data_typeDetermine data type based on known file extensions.
filesGet a list of all filenames in the library.
filter_commentsDeprecated feature.
filter_namesDeprecated feature.
filter_systemDeprecated feature.
filtersDeprecated feature.
is_in_databaseReturn True if library is defined in the database instance.
- path
- url
Methods
clear_cache()Remove local copies of all files in the library.
download_all()Download the whole library.
get(k[,d])items()keys()values()- aliases = {'flux_col': 'flux_col', 'flux_unit': 'flux_unit', 'items': 'filters', 'wave_col': 'wave_col'}#
- db_dir = 'filter_systems'#
- property filter_comments#
Deprecated feature.
- property filter_names#
Deprecated feature.
- property filter_system#
Deprecated feature.
- property filters#
Deprecated feature.
- class spextra.libraries.SpecLibrary(name=None, library_name=None)#
Bases:
LibraryLibrary of spectral templates.
- Attributes:
data_typeDetermine data type based on known file extensions.
filesGet a list of all filenames in the library.
is_in_databaseReturn True if library is defined in the database instance.
library_nameDeprecated feature.
- path
template_commentsDeprecated feature.
template_namesDeprecated feature.
templatesDeprecated feature.
- url
Methods
clear_cache()Remove local copies of all files in the library.
download_all()Download the whole library.
get(k[,d])items()keys()values()- aliases = {'flux_col': 'flux_column_name', 'flux_unit': 'flux_unit', 'items': 'templates', 'wave_col': 'wave_column_name'}#
- db_dir = 'libraries'#
- property library_name#
Deprecated feature.
- property template_comments#
Deprecated feature.
- property template_names#
Deprecated feature.
- property templates#
Deprecated feature.