star_grid

simcado.source.star_grid(n, mag_min, mag_max, filter_name='Ks', separation=1, spec_type='A0V')[source]

Creates a square grid of A0V stars at equal magnitude intervals

Parameters
nfloat

the number of stars in the grid

mag_min, mag_maxfloat

[vega mag] the minimum (brightest) and maximum (faintest) magnitudes for stars in the grid

filter_namestr

any filter that is in the SimCADO package directory. See simcado.optics.get_filter_set()

separationfloat, optional

[arcsec] an average speration between the stars in the grid can be specified. Default is 1 arcsec

spec_typestr, optional

the spectral type of the star, e.g. “A0V”, “G5III”

Returns
sourcesimcado.Source

Notes

The units of the A0V spectrum in source are [ph/s/m2/bin]. The weight values are the scaling factors to bring a V=0 A0V spectrum down to the required magnitude for each star.