scopesim_templates.misc.misc.source_from_image#
- scopesim_templates.misc.misc.source_from_image(**kwargs)#
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