calc_vmag#
- stellarphot.differential_photometry.calc_vmag(var_stars, star_data, comp_stars, band=None, star_data_mag_column='mag_inst')[source]#
Calculate the average magnitude and standard deviation of a variable star in field.
- Parameters:
- var_stars‘~astropy.table.Table’
Table of variable stars known in field. It should contain a column called
coordswith the coordinates for each variable star as astropySkyCoordobjects.- star_data‘~astropy.table.Table’
Table of star data from observed image(s). One column should be named
bandand contain the passband in which observations were done. The column containing instrumental magnitudes is passed in with the argumentstar_data_mag_column.- comp_stars‘~astropy.table.Table’
Table of known comparison stars in the field, given by AAVSO. The column containing the reference magnitudes for the filter specified by filter is passed in with the argument
comp_star_mag_column.- bandstr
Filter/passband in which magnitude is being calculated.
- star_data_mag_columnstr, optional
Name of the column containing the instrumental magnitudes in
star_data.
- Returns:
- avgfloat
Average magnitude for the variable star
- stdevfloat
Standard deviation for variable star values