scopesim_templates.stellar.star_field¶
- scopesim_templates.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:
- nint
number of stars
- mmin, mmaxastropy.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, heightfloat
[arcsec] width of region to put stars in. if height=None, height=width
- filter_namestr
For scaling the stars. Use either common names or Spanish-VO identifiers.
- rafloat or str
RA of the center of the field (not used at the moment).
- decfloat or str
DEC of the center of the field (not used at the moment).
- Returns:
- starsscopesim.Source object
A Source object with a field of stars that can be fed into the method:
<OpticalTrain>.observe()