scopesim_templates.misc.source_from_array¶
- scopesim_templates.misc.source_from_array(arr, sed, pixel_scale, amplitude, filter_curve, ra=0, dec=0) Source ¶
Create a source from an image (numpy 2D array).
- Parameters:
- arrnp.ndarray
a 2D numpy array
- sedbasestring
any sed available in the spextra library or a Spextrum object
- pixel_scalefloat, u.Quantity
pixel scale on the sky (u.arcsec, u.arcmin, u.deg).
- amplitudefloat, u.Quantity
magnitude of the spectra in a filter_curve
- filter_curvebasestring
a filter in the speXtra database or the SVO
- Returns:
- src
scopesim.Source
- src