Skip to content

Instantly share code, notes, and snippets.

@syrte
Created May 18, 2023 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syrte/85a0499ca1fdd2ff07a0a6d208ab7f2a to your computer and use it in GitHub Desktop.
Save syrte/85a0499ca1fdd2ff07a0a6d208ab7f2a to your computer and use it in GitHub Desktop.
from astropy import units as u
(0 * u.ABmag).to(u.erg/u.s/u.cm**2/u.Hz)
# 0 ABmag corresponsds to 3.6307805477010035e-20 erg / (cm2 Hz s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment