scopesim_templates.stellar.stellar.star_field#
- scopesim_templates.stellar.stellar.star_field(n, mmin, mmax, width, height=None, filter_name='V', ra=0, dec=0, **kwargs)#
Create a super basic field of stars with random positions and brightnesses.
- Parameters:
n (int) – number of stars
mmin (astropy.Quantity, float) – [mag, Jy] minimum and maximum flux amplitudes of the population in u.mag (u.ABmag) or u.Janksy where u is for astropy.units. If mmin and mmax are floats, Vega magnitudes are assumed
mmax (astropy.Quantity, float) – [mag, Jy] minimum and maximum flux amplitudes of the population in u.mag (u.ABmag) or u.Janksy where u is for astropy.units. If mmin and mmax are floats, Vega magnitudes are assumed
width (float) – [arcsec] width of region to put stars in. if height=None, height=width
height (float) – [arcsec] width of region to put stars in. if height=None, height=width
filter_name (str) – For scaling the stars. Use either common names or Spanish-VO identifiers.
ra (float or str) – RA of the center of the field (not used at the moment).
dec (float or str) – DEC of the center of the field (not used at the moment).
parameters (Additional)
---------------------
x (lists, arrays) – [arcsec] The positions of the stars can be overridden by specifying the coordinates. The lists must contain N values
y (lists, arrays) – [arcsec] The positions of the stars can be overridden by specifying the coordinates. The lists must contain N values
- Returns:
stars – A Source object with a field of stars that can be fed into the method:
<OpticalTrain>.observe()- Return type:
scopesim.Source object