scopesim.source.source_templates.star_field

Contents

scopesim.source.source_templates.star_field#

scopesim.source.source_templates.star_field(n, mmin, mmax, width, height=None, use_grid=False)#

Creates a super basic field of stars with random positions and brightnesses

Parameters:
  • n (int) – number of stars

  • mmin (float, astropy.Quantity) – [mag, ABmag, Jy] min and max magnitudes/fluxes of the population stars. If floats, then assumed Quantity is vega magnitudes

  • mmax (float, astropy.Quantity) – [mag, ABmag, Jy] min and max magnitudes/fluxes of the population stars. If floats, then assumed Quantity is vega magnitudes

  • width (float) – [arcsec] width of region to put stars in

  • height (float, optional) – [arcsec] if None, then height=width

  • use_grid (bool, optional) – Place stars randomly or on a grid

Returns:

stars – A Source object with a field of stars that can be fed into the method: OpticalTrain.observe()

Return type:

scopesim.Source object

See also

OpticalTrain.observe, OpticalTrain.readout