scopesim.source.source_templates module¶
- scopesim.source.source_templates.empty_sky(flux=0)[source]¶
Returns an empty source so that instrumental fluxes can be simulated
- Returns:
- skySource
- scopesim.source.source_templates.star(x=0, y=0, flux=0)[source]¶
Source object for a single star in either vega, AB magnitudes, or Jansky
The star is associated with the reference spectrum for each photometric system, therefore a reference wavelength or filter does not need to be given
- Parameters:
- x, yfloat
[arcsec] position from centre of field of view
- fluxfloat
[vega mag, AB mag, Jy] Stellar brightness
- Returns:
- srcSource
A source object with a single entry table field and a reference spectrum
- scopesim.source.source_templates.star_field(n, mmin, mmax, width, height=None, use_grid=False)[source]¶
Creates a super basic field of stars with random positions and brightnesses
- Parameters:
- nint
number of stars
- mmin, mmaxfloat, astropy.Quantity
[mag, ABmag, Jy] min and max magnitudes/fluxes of the population stars. If floats, then assumed Quantity is vega magnitudes
- widthfloat
[arcsec] width of region to put stars in
- heightfloat, optional
[arcsec] if None, then height=width
- use_gridbool, optional
Place stars randomly or on a grid
- Returns:
- starsscopesim.Source object
A Source object with a field of stars that can be fed into the method: OpticalTrain.observe()
See also
OpticalTrain.observe
OpticalTrain.readout