Skip to content

What type of unit is the flux measured in? #1251

Answered by warrickball
LordFurno asked this question in Q&A
Discussion options

You must be logged in to vote

The flux in the light curves (or at least the SPOC pipeline ones) is electrons per second.

>>> import lightkurve as lk
>>> lc = lk.search_lightcurve('HD 38529')[0].download()
>>> print(lc.flux.unit)
electron / s

Apparent magnitude is a logarithmic measure of flux relative to some zero point (e.g. Vega). There are probably more robust ways of doing this but I usually resort to the value in the light curve metadata (although it isn't always reliable).

>>> print(lc.meta['TESSMAG'])
5.27250004

To plot light curves in magnitudes, I convert the flux to differential magnitudes with something like

>>> import numpy as np
>>> delta_mag = -2.5*np.log10(lc.flux.value/np.nanmedian(lc.flux.value))
>>…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by orionlee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants