scopesim.source

scopesim.source#

Modules

source

# old functionality to implement: # - provide x, y, lam, spectra, weight, ref # - overridden + : number, Source, SourceSpectrum # - overridden * : number, SpectralElement # - write to and read from file # - shift all fields # - rotate around the centre # - photons_in_range returns the photons per spectrum in a wavelength range # - image_in_range returns an image of the source for a wavelength range # # old functionality which will be removed: # - project_onto_chip # - apply_optical_train # # old structure --> new structure: # - all data held in 6 arrays # --> new dicts for fields, spectrum # field can be a Table or an ImageHDU # spectrum is a SourceSpectrum # # Use cases: # image + spectrum # images + spectra # table + spectrum # table + spectra # # table columns = x, y, spec_id, weight # table meta keywords = x_unit, y_unit # # image header keywords = WCS, SPEC_ID, WEIGHT # [WCS = CRPIXn, CRVALn = (0,0), CTYPEn, CDn_m, NAXISn, CUNITn

source_fields

Contains SourceField and its subclasses.

source_templates

source_utils