spextra.libraries module#
Contains ldatabase library and subclasses.
- class spextra.libraries.ExtCurvesLibrary(name=None, curve_library=None)#
Bases:
Library
Library of extinction curves.
- Attributes:
curve_comments
Deprecated feature.
curve_names
Deprecated feature.
curves
Deprecated feature.
data_type
Determine data type based on known file extensions.
files
Get a list of all filenames in the library.
is_in_database
Return 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:
Library
Library of filters comprising a filter system.
- Attributes:
data_type
Determine data type based on known file extensions.
files
Get a list of all filenames in the library.
filter_comments
Deprecated feature.
filter_names
Deprecated feature.
filter_system
Deprecated feature.
filters
Deprecated feature.
is_in_database
Return 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:
Library
Library of spectral templates.
- Attributes:
data_type
Determine data type based on known file extensions.
files
Get a list of all filenames in the library.
is_in_database
Return True if library is defined in the database instance.
library_name
Deprecated feature.
- path
template_comments
Deprecated feature.
template_names
Deprecated feature.
templates
Deprecated 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.