mag_scale#

stellarphot.utils.mag_scale(cmag, apass, v_angle, RD_angle, brighter_dmag=0.44, dimmer_dmag=0.75, passband='SR')[source]#

Select comparison stars that are 1) not close the VSX stars or to other target stars and 2) fall within a particular magnitude range.

Parameters:
cmagfloat

Magnitude of the target star.

apassastropy.table.Table

Table with APASS stars in the field of view.

v_angleastropy.units.Quantity

Angular separation between APASS stars and VSX stars.

RD_angleastropy.units.Quantity

Angular separation between APASS stars and input targets.

brighter_dmagfloat, optional

Maximum difference in magnitude between the target and comparison stars.

dimmer_dmagfloat, optional

Minimum difference in magnitude between the target and comparison stars.

passbandstr, optional

Passband to use for selecting the comparison stars.

Returns:
apass_good_coordastropy.coordinates.SkyCoord

Coordinates of the comparison stars.

good_starsastropy.table.Table

Table with the comparison stars.