|
lsst.cpputils g87389fa792+d8b5378923
|
Utilities for converting between flux and magnitude in C++. More...
#include <cmath>Go to the source code of this file.
Namespaces | |
| namespace | lsst |
| namespace | lsst::cpputils |
Functions | |
| double | lsst::cpputils::nanojanskyToABMagnitude (double flux) |
| Convert a flux in nanojansky to AB magnitude. | |
| double | lsst::cpputils::ABMagnitudeToNanojansky (double magnitude) |
| Convert an AB magnitude to a flux in nanojansky. | |
Variables | |
| const double | lsst::cpputils::referenceFlux = 1e23 * pow(10, (48.6 / -2.5)) * 1e9 |
| The Oke & Gunn (1983) AB magnitude reference flux, in nJy (often approximated as 3631.0). | |
Utilities for converting between flux and magnitude in C++.
Use astropy.units ABmag and nJy for converstions in python:
Definition in file Magnitude.h.