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

Getting spectrum from Ch.spectrum without smoothing/filtering #419

Open
MadFisa opened this issue Dec 2, 2022 · 4 comments
Open

Getting spectrum from Ch.spectrum without smoothing/filtering #419

MadFisa opened this issue Dec 2, 2022 · 4 comments

Comments

@MadFisa
Copy link

MadFisa commented Dec 2, 2022

Hi,

As mentioned in title, is there a way to calculate spectra without the smoothing/filtering? I have a specific application where the instrument response is applied by another code to the synthetic spectra and therefore the ChiantipPy spectra should be unfiltered/nonsmoothed?

How can I get a spectra without smoothing with ChiantiPy? Will I have to write some kind of impulse response filter to do that?

@kdere
Copy link
Contributor

kdere commented Dec 2, 2022

A relatively simple way to do this without recoding anything would be to create a fllter function that recreates an array of ones the same size of the wavelength (wvl) array. I have not had time to try it but I believe that it should work,

@MadFisa
Copy link
Author

MadFisa commented Dec 2, 2022

Hi,
That’s what I meant by an impulse response filter. But, shouldn’t the filter be an array with 1 at Center wavelength and 0 at everywhere else(analogous to an infinitely narrow gaussian), instead of all ones?
Anyways I will try it out and update , thanks.

@kdere
Copy link
Contributor

kdere commented Dec 2, 2022

Yes, I think you are right

@kdere
Copy link
Contributor

kdere commented Dec 3, 2022

you may also need to multiply by the wavelength increment

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