Skip to content

Instantiate Spectrum1D object with bin edges instead of bin centers #176

Closed
@eblur

Description

@eblur

Want to be able to instantiate a Spectrum1D object with bin edges instead of bin centers.

For example, a particularly nasty X-ray spectrum might have:

import numpy as np
import astropy.units as u
ebin_edges = np.array([1.0, 2.0, 2.3, 3.0]) * u.keV
bin_counts = np.array([5.0, 8.0, 6.0]) # dimensionless "counts"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions