scopesim_templates.misc.misc.point_source#
- scopesim_templates.misc.misc.point_source(sed, amplitude=None, filter_curve='V', x=0, y=0, ra=0, dec=0) Source#
Create a point source with an arbitrary spectrum.
This is similar to
scopesim_templates.stellar.star.- Parameters:
sed (str or synphot.Source_Spectrum) – Passing a str will try to download a sed from the speXtra database alternatively an user manipulated
synphot.Source_Spectrumor compatible object can be provided.amplitude (float) – flux or magnitude of the object. The SED will be scaled to that value if left to
None(default) no scaling will be performedfilter_curve (str) – any astronomical filter in the speXtra or the spanish VO database
x (float) – X-coordinate on the plane in arcsec
y (float) – Y-coordinate on the plane in arcsec
ra (float, str) – RA coordinates of the center of the field (not used)
dec (float, str) – DEC coordinates of the center of the field (not used)
- Returns:
src
- Return type:
scopesim.Source