-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Astronomical Magnitudes #265
Comments
ajkeller34
pushed a commit
to rigetti/Unitful.jl
that referenced
this issue
Sep 1, 2019
ajkeller34
pushed a commit
to rigetti/Unitful.jl
that referenced
this issue
Sep 1, 2019
Thanks for the report and your interest in the package. I'm pretty sure #267 should resolve your issues. This sort of error happens whenever someone tries to multiply a quantity of some dimension by a gain for the first time; you need to decide if the behavior should be more like watts (10dB = 10x) or volts (20dB = 10x). |
This was referenced Feb 15, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I have a somewhat niche unit problem.
Over at
UnitfulAstro
there's been an implementation of astronomical magnitudes (Lines 89-149). There's a few flavors, but the basic interaction is that it is a logarithmic scale with a conversion likef * 10 ^ (-0.4 * lambda_m)
where
f
is a flux value andlambda_m
is the magnitude.What I've noticed is an issue of undefined behavior when using some of the densities of fluxes. For instance, when looking at the brightness of stars, we can measure them and get a power value, or energy per second (energy for us is flux) eg
erg/s
. Furthermore, we might have a flux density, or a solid angle in which the energy is absorbed (like the aperture of a telescope) egerg/s/cm^2
. Even further, we could disperse the light and obtain a spectrum that is dependent on wavelength egerg/s/cm^2/cm
.Any one of these values ought to be able to be affected by this magnitude, but only the following cases work:
Any tips?
The text was updated successfully, but these errors were encountered: