WernerQH said:
You need to know something about the spectrum. Or at least the width of the line.
I think I made some progress.
The article for the Vizier data base is here:
https://academic.oup.com/mnras/article/431/1/2/1036908
On pg. 12 in the pdf "
with the exception of McCullough et al. (2001) who
determined a flux for Abell 36 of F(Hα) = 2.8 × 10−11 erg cm−2 s−1,
which is 28 per cent lower than our own determination of
3.9 ×
10−11 erg cm−2 s−1.
"
If I look up Abell 36 in their database I find a logF = -10.41 mW/m^2
Then:
[CODE lang="python" title="conversion"]import numpy as np
from scipy.integrate import simps
# Given logFlux in mW/m²
logFlux_mW_per_m2 = -10.41
# Convert logFlux to regular flux in mW/m²
flux_mW_per_m2 = 10 ** logFlux_mW_per_m2
# Load filter transmission data from file (assuming two columns: wavelength, transmission)
filter_data = np.loadtxt('H-alpha-3nm_2.txt')
wavelengths = filter_data[:, 0] # Wavelengths in Ångströms
transmission_values = filter_data[:, 1] # Filter transmission values
# Interpolate the filter transmission data to match the flux wavelengths (if needed)
# Assuming the filter and flux data have matching wavelengths
# Calculate the product of flux and filter transmission
flux_times_transmission = flux_mW_per_m2 * transmission_values
# Integrate the product over the wavelength range to get erg/s/cm²
erg_per_s_per_cm2 = simps(flux_times_transmission, wavelengths)
# Convert the result to erg/s/cm²/Å by dividing by the bandwidth (in Ångströms)
erg_per_s_per_cm2_per_Angstrom = erg_per_s_per_cm2 / 30 #bandwidth_Angstrom
print("Flux in erg/s/cm²/Å:", erg_per_s_per_cm2_per_Angstrom)
f = erg_per_s_per_cm2_per_Angstrom * units.FLAM
f.to(u.W / (u.m**2 * u.nm), u.spectral_density(Hydrogen_filter))[/CODE]
Print result:
[CODE lang="python" title="Result"]Flux in erg/s/cm²/Å: 3.90462998411593e-11[/CODE]
Get the same value as them but in my case I had to divide by the filter bandwidth so the result is in erg/s/cm²/Å, but they report the result in erg/s/cm². Don't know what to make of it