fluxcompensator.utils.fieldstars¶
-
fluxcompensator.utils.fieldstars.
set_up_extinction_map
()¶ Text description of how to extract a synthetic extinction map from a radiative transfer calculation.
-
fluxcompensator.utils.fieldstars.
extract_extinction_map
(SO_cm, SO, dust)¶ Extracting extinction map from radiative transfer calculation.
Parameters: SO_cm : SyntheticImage
FluxCompensator object of cm observation
SO : SyntheticImage
FluxCompensator object of synthetic observation where fieldstars should be added to.
dust : str
Path and name of dust file.
Returns: A_v : numpy.ndarray
Optical extinction map.
-
fluxcompensator.utils.fieldstars.
get_stars_from_database
(band, number, distance_range, ground, object_distance, seed=None)¶ Selects magnitudes of fieldstars in IRAC and 2MASS from database and assigns a random distance.
Parameters: band : str
Name of the detector band, here only
'J_2MASS'
,'H_2MASS'
,'K_2MASS'
,'IRAC1'
,'IRAC2'
,'IRAC3'
,'IRAC4'
are allowed.number : int
Number of selected stars, 289 is the maximum.
distance_range : list
List of distance of minimum and maximum distance in cm.
ground : str
'foreground'
and'background'
fieldstars to the modeled objects are possible. When'foreground'
is enabled, e.g. for galaxies only stars distances in the foreground are produced. When'background'
is enabled, 90% background and 10% foreground distances are selected.object_distance : float
Distance of modeled object in cm.
seed : int, None
Seed for random number generator. Set to a certain integer to reproduce the result.
Returns: mag : numpy.ndarray
Magnitude of
number
stars in observed withband
.distance_stars : numpy.ndarray
Distance of stars within
distance_range
.