scopesim_templates.misc.misc.source_from_array#
- scopesim_templates.misc.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:
arr (np.ndarray) – a 2D numpy array
sed (basestring) – any sed available in the spextra library or a Spextrum object
pixel_scale (float, u.Quantity) – pixel scale on the sky (u.arcsec, u.arcmin, u.deg).
amplitude (float, u.Quantity) – magnitude of the spectra in a filter_curve
filter_curve (basestring) – a filter in the speXtra database or the SVO
- Returns:
src
- Return type:
scopesim.Source