bcd: module of BCD analysis tools

PyHdust bcd auxiliary module: PyHdust BCD module.

co-author:Bruno Mota; Antoine Merand; Ahmed Elshaer
license:GNU GPL v3.0 https://github.com/danmoser/pyhdust/blob/master/LICENSE
pyhdust.bcd.analyze_all(fmt=['png'])[source]

Run balmer_jump function to all files starting with ‘HD’.

pyhdust.bcd.balmer_jump(filename)[source]

Calculate the Balmer_jump of a given spectrum.

INPUT: filename is a file with 4 columns, as [wav (\(\AA\)), log10(wav), norm_flux, log(flux)]

OUTPUT: offset, intersect

pyhdust.bcd.bcd(obj, wav, nflx, logflx, elogflx=None, label='Spec', folder=None, doplot=False)[source]

Calculate the Balmer_jump of a given spectrum.

INPUT: wav (\(\AA\)), nflux (Normalized flux), log10(flux) and log10(err_flux).

Note that the continuum of nflux after the Balmer Jump is ~1.0 and before is 0.30 < flux < 0.64!

TODO: errors

OUTPUT: offset, intersect

pyhdust.bcd.bcd_new(wav, flx, doplot=False)[source]

Calculate the Balmer_jump of a given spectrum.

INPUT: wav (\(\AA\)), flux (non-normalized)

OUTPUT: offset, intersect, dD

dD < 0 means an “emission” (opposite sign)

TODO: errors