bpt_type¶
- edge_pydb.conversion.bpt_type(fluxtab, ext='', name='BPT', sf=True, prob=False, grid_size=5)[source]¶
Adds BPT classification to the flux_elines table. BPT==-1 means in the star-forming region of the diagram. An additional column SF_BPT is set to 1 when BPT==-1 and Halpha EW > 6. This function should be run before ZOH_M13. For more information see Husemann et al. (2013A&A…549A..87H) Figure 7.
- Parameters:
- fluxtab
astropy.Table flux_elines table extracted from Pipe3D output
- extstring
suffix for selected column names, e.g. ‘_rg’ or ‘_sm’
- namestring
name of the output column
- sfboolean
True to also calculate the SF_BPT column using Halpha EW.
- probboolean
True to also calculate the BPT probabilities as an additional column
- grid_sizefloat
The size of the square grid where BPT probabilities constructed
- fluxtab
- Returns:
- if sf==False and prob==False:
one astropy.table.Column [BPT]
- if sf==False and prob==True:
two astropy.table.Column [BPT, p_BPT]
- if sf==True and prob==False:
two astropy.table.Column [BPT, SF_BPT]
- if sf==True and prob==True:
three astropy.table.Column [BPT, SF_BPT, p_BPT]