Skip to content

Reaction.band_xsecs

band_xsecs (property)

Band-averaged cross sections for this reaction, one row per radiation band, as a tidy pandas.DataFrame. Assembled from the per-band entries in photo.rgrouped, which are populated when a radiation field is configured on the network (via the radiation_props argument to Network). A reaction whose rate comes from a .jfunc chemRate<N> is not coupled to the bands and has no band data, so its frame is empty. Intended as the data source for band bar plots (see the bands option of plot_xsecs).

Returns

pandas.DataFrame
One row per band this reaction contributes to, with columns:
Column Unit Description
lower eV Lower band edge
upper eV Upper band edge (inf for an open top band)
eavg eV Photon-number-weighted band-average energy
xsec cm² Photon-number-weighted band-average cross section (NaN for custom-rate reactions)
xsec_frac — Fraction of the reaction's rate attributed to the band
The frame is empty (with the columns above) when the reaction contributes to no band, e.g. no radiation field is configured. Rows are ordered by ascending band index.

Example

from jaff.physics import RadiationProps

net = Network(
    "networks/h_photoionization/h_photo.jet",
    radiation_props=RadiationProps(bands=[1, 13.6, 100, "inf"]),
)
rxn = net.reactions.photo_reactions()[0]
rxn.band_xsecs          # DataFrame: lower / upper / eavg / xsec / xsec_frac
rxn.plot_xsecs(bands=True)        # overlay the band-averaged bars on σ(E)