Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement f_3pow function #123

Open
wtbarnes opened this issue Oct 17, 2023 · 1 comment
Open

Implement f_3pow function #123

wtbarnes opened this issue Oct 17, 2023 · 1 comment

Comments

@wtbarnes
Copy link
Member

wtbarnes commented Oct 17, 2023

f_3pow is a function in the xray IDL package that provides a triple broken power law function. The complete code is here: https://soho.nascom.nasa.gov/solarsoft/packages/xray/idl/f_3pow.pro. This function is presumably useful either when forward modeling or fitting observed spectra.

Another approach would be to implement a function that models a power-law with $N$ breaks such that a separate function isn't needed for each kind of power-law.

@settwi
Copy link
Contributor

settwi commented Oct 18, 2023

Sure, we can probably modify the existing photon power law to support N breaks. We would need to think about normalization but that shouldn't be too bad.

How is it normalized in IDL? I like making the user pick a normalization energy and then setting the flux normalization there. Otherwise it can be confusing if we have a magic fixed energy like IDL does sometimes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants