bpt_prob

edge_pydb.conversion.bpt_prob(n2ha_u, o3hb_u, bpt_type, grid_size=5)[source]

Calculate the probability that a measurement with uncertainty is in a particular region of the BPT diagram, as specified by the parameter bpt_type. This is done by constructing a grid and measuring the normalized Gaussian area within the chosen BPT region.

Parameters:
n2ha_uufloat

log10([NII]/Halpha) and uncertainty

o3hb_uufloat

log10([OIII]/Hbeta) and uncertainty

bpt_typefloat

BPT type to measure prob for, -1=SF, 0=intermediate, 1=LINER, 2=Seyfert

grid_sizefloat

The number of grid points placed between +/- one sigma of the mean

Returns:
probability that measurement is in the specified region