I/O and VOSA helper functions ============================= Reading photometric data ------------------------ From VOSA files ~~~~~~~~~~~~~~~ .. code:: ipython3 import src.binary_sed_fitting as bsf file_name = 'data/vosa_results/WOCS2002.bfit.phot.dat' data = bsf.load_data(file_name, mode='vosa') data .. parsed-literal:: /Users/vikrantjadhav/Documents/work/Binary_SED_Fitting/src/binary_sed_fitting.py:158: FutureWarning: The 'delim_whitespace' keyword in pd.read_csv is deprecated and will be removed in a future version. Use ``sep='\s+'`` instead data = pd.read_csv(file_name, engine='python', comment='#', .. raw:: html
wavelength | flux | error | |
---|---|---|---|
FilterID | |||
Astrosat/UVIT.F148W | 1481.000000 | 2.548070e-15 | 1.361179e-16 |
Astrosat/UVIT.F154W | 1541.000000 | 2.285731e-15 | 1.368403e-16 |
Astrosat/UVIT.F169M | 1608.000000 | 2.360782e-15 | 1.261129e-16 |
GALEX/GALEX.NUV | 2303.366368 | 3.296702e-15 | 8.677147e-17 |
KPNO/Mosaic.B | 4357.276538 | 9.309407e-14 | 6.130611e-15 |
GAIA/GAIA3.Gbp | 5035.750275 | 1.028575e-13 | 3.881303e-16 |
KPNO/Mosaic.V | 5366.240786 | 1.079375e-13 | 7.108112e-15 |
GAIA/GAIA3.G | 5822.388714 | 9.174216e-14 | 2.539155e-16 |
GAIA/GAIA3.Grp | 7619.959993 | 7.878734e-14 | 3.154436e-16 |
KPNO/Mosaic.I | 8101.609574 | 4.470797e-14 | 2.944196e-15 |
GAIA/GAIA3.Grvs | 8578.159519 | 6.896280e-14 | 5.559650e-16 |
2MASS/2MASS.J | 12350.000000 | 3.612486e-14 | 7.319890e-16 |
2MASS/2MASS.H | 16620.000000 | 1.882778e-14 | 3.468206e-16 |
2MASS/2MASS.Ks | 21590.000000 | 7.827519e-15 | 1.297694e-16 |
WISE/WISE.W1 | 33526.000000 | 1.546087e-15 | 2.990397e-17 |
WISE/WISE.W2 | 46028.000000 | 4.313308e-16 | 7.150866e-18 |
WISE/WISE.W3 | 115608.000000 | 1.230361e-17 | 4.306178e-19 |
wavelength | flux | error | |
---|---|---|---|
FilterID | |||
Astrosat/UVIT.F148W | 1481.000000 | 2.548070e-15 | 1.361179e-16 |
Astrosat/UVIT.F154W | 1541.000000 | 2.285731e-15 | 1.368403e-16 |
Astrosat/UVIT.F169M | 1608.000000 | 2.360782e-15 | 1.261129e-16 |
GALEX/GALEX.NUV | 2303.366368 | 3.296702e-15 | 8.677147e-17 |
KPNO/Mosaic.B | 4357.276538 | 9.309407e-14 | 6.130611e-15 |
GAIA/GAIA3.Gbp | 5035.750275 | 1.028575e-13 | 3.881303e-16 |
KPNO/Mosaic.V | 5366.240786 | 1.079375e-13 | 7.108112e-15 |
GAIA/GAIA3.G | 5822.388714 | 9.174216e-14 | 2.539155e-16 |
GAIA/GAIA3.Grp | 7619.959993 | 7.878734e-14 | 3.154436e-16 |
KPNO/Mosaic.I | 8101.609574 | 4.470797e-14 | 2.944196e-15 |
GAIA/GAIA3.Grvs | 8578.159519 | 6.896280e-14 | 5.559650e-16 |
2MASS/2MASS.J | 12350.000000 | 3.612486e-14 | 7.319890e-16 |
2MASS/2MASS.H | 16620.000000 | 1.882778e-14 | 3.468206e-16 |
2MASS/2MASS.Ks | 21590.000000 | 7.827519e-15 | 1.297694e-16 |
WISE/WISE.W1 | 33526.000000 | 1.546087e-15 | 2.990397e-17 |
WISE/WISE.W2 | 46028.000000 | 4.313308e-16 | 7.150866e-18 |
WISE/WISE.W3 | 115608.000000 | 1.230361e-17 | 4.306178e-19 |
<xarray.DataArray (FilterID: 8162, Te: 82, logg: 13)> Size: 70MB [8700692 values with dtype=float64] Coordinates: * FilterID (FilterID) <U38 1MB 'IUE/IUE.1250-1300' ... 'QUIJOTE/MFI.11GHz_H3' * Te (Te) int32 328B 5000 5250 5500 5750 ... 50000 60000 70000 80000 * logg (logg) float64 104B 6.5 6.75 7.0 7.25 7.5 ... 8.75 9.0 9.25 9.5 Attributes: Wavelengths: [1.28470318e+03 1.35336435e+03 1.35623969e+03 ... 3.8683349... unit: erg/s/cm2/A long_name: Flux
ra | dec | B | e_B | V | e_V | I | e_I | U | e_U | R | e_R | F148W | e_F148W | F154W | e_F154W | F169M | e_F169M | distance | Av | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name | ||||||||||||||||||||
WOCS2002 | 132.8492 | 11.83040 | 12.300 | NaN | 11.540 | NaN | 11.060 | NaN | NaN | NaN | NaN | NaN | 18.66000 | 0.058 | 18.69300 | 0.065 | 18.58200 | 0.058 | 831.76+-11 | 0.1736+-0.017 |
WOCS1007 | 132.8931 | 11.85297 | 11.070 | NaN | 10.960 | NaN | 11.072 | NaN | NaN | NaN | NaN | NaN | 17.03341 | 0.018 | 16.87171 | 0.016 | 16.63688 | 0.019 | 831.76+-11 | 0.1736+-0.017 |
Y1168 | 132.8331 | 11.81147 | 18.409 | NaN | 18.632 | NaN | NaN | NaN | 18.393 | NaN | NaN | NaN | 17.02925 | 0.039 | 17.06582 | 0.033 | 17.17563 | 0.033 | 831.76+-11 | 0.1736+-0.017 |
ra | dec | KPNO/Mosaic.B | e_KPNO/Mosaic.B | KPNO/Mosaic.V | e_KPNO/Mosaic.V | KPNO/Mosaic.I | e_KPNO/Mosaic.I | KPNO/Mosaic.U | e_KPNO/Mosaic.U | KPNO/Mosaic.R | e_KPNO/Mosaic.R | Astrosat/UVIT.F148W | e_Astrosat/UVIT.F148W | Astrosat/UVIT.F154W | e_Astrosat/UVIT.F154W | Astrosat/UVIT.F169M | e_Astrosat/UVIT.F169M | distance | Av | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name | ||||||||||||||||||||
WOCS2002 | 132.8492 | 11.83040 | 12.300 | NaN | 11.540 | NaN | 11.060 | NaN | NaN | NaN | NaN | NaN | 18.66000 | 0.058 | 18.69300 | 0.065 | 18.58200 | 0.058 | 831.76+-11 | 0.1736+-0.017 |
WOCS1007 | 132.8931 | 11.85297 | 11.070 | NaN | 10.960 | NaN | 11.072 | NaN | NaN | NaN | NaN | NaN | 17.03341 | 0.018 | 16.87171 | 0.016 | 16.63688 | 0.019 | 831.76+-11 | 0.1736+-0.017 |
Y1168 | 132.8331 | 11.81147 | 18.409 | NaN | 18.632 | NaN | NaN | NaN | 18.393 | NaN | NaN | NaN | 17.02925 | 0.039 | 17.06582 | 0.033 | 17.17563 | 0.033 | 831.76+-11 | 0.1736+-0.017 |
object | ra | dec | distance | Av | filter | flux | error | pntopts | objopts | |
---|---|---|---|---|---|---|---|---|---|---|
0 | WOCS2002 | 132.8492 | 11.83040 | 831.76+-11 | 0.1736+-0.017 | KPNO/Mosaic.B | 12.30000 | --- | --- | --- |
1 | WOCS2002 | 132.8492 | 11.83040 | 831.76+-11 | 0.1736+-0.017 | KPNO/Mosaic.V | 11.54000 | --- | --- | --- |
2 | WOCS2002 | 132.8492 | 11.83040 | 831.76+-11 | 0.1736+-0.017 | KPNO/Mosaic.I | 11.06000 | --- | --- | --- |
3 | WOCS2002 | 132.8492 | 11.83040 | 831.76+-11 | 0.1736+-0.017 | Astrosat/UVIT.F148W | 18.66000 | 0.058 | --- | --- |
4 | WOCS2002 | 132.8492 | 11.83040 | 831.76+-11 | 0.1736+-0.017 | Astrosat/UVIT.F154W | 18.69300 | 0.065 | --- | --- |
5 | WOCS2002 | 132.8492 | 11.83040 | 831.76+-11 | 0.1736+-0.017 | Astrosat/UVIT.F169M | 18.58200 | 0.058 | --- | --- |
6 | WOCS1007 | 132.8931 | 11.85297 | 831.76+-11 | 0.1736+-0.017 | KPNO/Mosaic.B | 11.07000 | --- | --- | --- |
7 | WOCS1007 | 132.8931 | 11.85297 | 831.76+-11 | 0.1736+-0.017 | KPNO/Mosaic.V | 10.96000 | --- | --- | --- |
8 | WOCS1007 | 132.8931 | 11.85297 | 831.76+-11 | 0.1736+-0.017 | KPNO/Mosaic.I | 11.07200 | --- | --- | --- |
9 | WOCS1007 | 132.8931 | 11.85297 | 831.76+-11 | 0.1736+-0.017 | Astrosat/UVIT.F148W | 17.03341 | 0.018 | --- | --- |
10 | WOCS1007 | 132.8931 | 11.85297 | 831.76+-11 | 0.1736+-0.017 | Astrosat/UVIT.F154W | 16.87171 | 0.016 | --- | --- |
11 | WOCS1007 | 132.8931 | 11.85297 | 831.76+-11 | 0.1736+-0.017 | Astrosat/UVIT.F169M | 16.63688 | 0.019 | --- | --- |
12 | Y1168 | 132.8331 | 11.81147 | 831.76+-11 | 0.1736+-0.017 | KPNO/Mosaic.B | 18.40900 | --- | --- | --- |
13 | Y1168 | 132.8331 | 11.81147 | 831.76+-11 | 0.1736+-0.017 | KPNO/Mosaic.V | 18.63200 | --- | --- | --- |
14 | Y1168 | 132.8331 | 11.81147 | 831.76+-11 | 0.1736+-0.017 | KPNO/Mosaic.U | 18.39300 | --- | --- | --- |
15 | Y1168 | 132.8331 | 11.81147 | 831.76+-11 | 0.1736+-0.017 | Astrosat/UVIT.F148W | 17.02925 | 0.039 | --- | --- |
16 | Y1168 | 132.8331 | 11.81147 | 831.76+-11 | 0.1736+-0.017 | Astrosat/UVIT.F154W | 17.06582 | 0.033 | --- | --- |
17 | Y1168 | 132.8331 | 11.81147 | 831.76+-11 | 0.1736+-0.017 | Astrosat/UVIT.F169M | 17.17563 | 0.033 | --- | --- |