aosss package¶
Subpackages¶
- aosss.basic package
- aosss.blocks package
- aosss.filetypes package
- aosss.gui package
- Submodules
- aosss.gui.a_WFileSparseCube module
- aosss.gui.a_WFileSpectrumList module
- aosss.gui.a_WSparseCube module
- aosss.gui.a_WSpectrumCollectionBase module
- aosss.gui.a_WSpectrumList module
- aosss.gui.a_XFileSparseCube module
- aosss.gui.a_XFileSpectrumList module
- aosss.gui.a_XGroupSpectra module
- aosss.gui.a_XHelpDialog module
- aosss.gui.a_XPlotXY module
- aosss.gui.a_XPlotXYZ module
- aosss.gui.a_XScaleSpectrum module
- aosss.gui.a_XToScalar module
- aosss.gui.a_XUseSpectrumBlock module
- Module contents
- aosss.physics package
- aosss.vis package
Submodules¶
aosss.mosaic module¶
Spectrograph modes specifications
-
class
aosss.mosaic.
SpectrographMode
(name='', abbreviation='', aperture=0.0, multiplex=0.0, wavelength_range=(0.0, 0.0), resolving_power=0.0, fov=0.0, flag_glao=False, flag_moao=False, pixel_size=0.0)¶ Bases:
a99.parts.AttrsPart
Spectrograph mode specification
Parameters: - name – name of spectrograph mode
- abbreviation – abbreviation of spectrograph mode
- aperture – aperture in (arcsec)
- multiplex – maximum number of simultaneous objects being observed (unitless)
- wavelength_range – [lambda_min, lambda_max] (angstrom)
- resolving_power – lambda/delta_lambda (unitless)
- fov – field-of-view (arcmin**2)
- flag_glao – whether or not Ground-Layer Adaptive Optics is available for this mode
- flag_moao – whether of not Multi-Object Adaptive Optics is available for this mode
- pixel_size – spatial pixel size
-
attrs
= ['name', 'abbreviation', 'aperture', 'multiplex', 'wavelength_range', 'resolving_power', 'fov', 'flag_glao', 'flag_moao', 'pixel_size']¶
aosss.report module¶
-
aosss.report.
create_simulation_report
(simid, dir_='.')¶ Creates HTML output and several PNG files with coherent naming
Parameters: - simid – simulation ID. This should be a string starting with a “C”, e.g., “C000793”
- dir – directory containing the simulation ouput files
Returns: name of output file created, which will be
<dir_>/report-<simid>.html
Return type: str
-
aosss.report.
create_index
(dir_='.')¶ [re]created ‘index.html’ of report*
aosss.util module¶
-
aosss.util.
classes_collection
()¶ Returns list of File* classes that can be converted to a SpectrumCollection
-
aosss.util.
create_spectrum_lists
(dir_, pipeline_stage='spintg')¶ Create several .splist files, grouping spectra by their wavelength vector
Parameters: - dir – input & output directory
- pipeline_stage –
input “stage”, i.e., which stage of the pipeline will be loaded. Possible values:
- ”spintg”: integrated spectrum (final stage)
- ”ifu_noseeing”: take first spectrum of 7x1 data cube TODO explain
-
aosss.util.
load_bulk
(simid, dir_='.')¶ Loads all files given the simulation id. Returns an list of BulkItem
The keys are the same as in FILE_KEYWORDS, in the same order as well
-
class
aosss.util.
BulkItem
(keyword=None, fileobj=None, filename=None, flag_exists=None, flag_supported=None, error=None)¶ Bases:
object
This is each item returned by load_bulk
-
aosss.util.
load_eso_sky
()¶ Loads ESO sky model from data directory
Returns: (emission, transmission)
(two f311.filetypes.Spectrum objects)Return type: tuple
-
aosss.util.
crop_splist
(splist, lambda0=None, lambda1=None)¶ Cuts all spectra in SpectrumList
Note lambda1 included in interval (not pythonic).