jesserogerson / BALparams

This code calculates the BALnicity index of a quasar given some user-supplied spectrum.
BSD 3-Clause "New" or "Revised" License
1 stars 3 forks source link

Flux Normalization #1

Open NicoGalvarino opened 3 months ago

NicoGalvarino commented 3 months ago

I would like to ask exactly how the input spectrum should be normalized. In the code it says:

`file: an ASCII spectrum of a quasar. It should be normalized to avoid bad pixels. It should be in the observed frame. (it will be deredshifted in-program) the first three columns must be:

wavelength flux flux_err`

To avoid bad pixels, should they just be masked out? Should the continuum be subtracted?

Thank you!

yorkphall commented 3 months ago

Dear Nicolás, please confirm if you receive this email. I'm replying on behalf of myself and Jesse since I happen to have a free moment.

On Mon, 10 Jun 2024 at 08:27, Nicolás Guerra-Varas @.***> wrote:

I would like to ask exactly how the input spectrum should be normalized. In the code it says:

file: an ASCII spectrum of a quasar. It should be normalized to avoid bad pixels. It should be in the observed frame. (it will be deredshifted in-program) the first three columns must be: #wavelength flux flux_err

To avoid bad pixels, should they just be masked out? Should the continuum be subtracted?

The continuum should not be subtracted.

Bad pixels should ideally be interpolated over (replace them with the average value of pixels on either side of the masked region, for example). They can be removed entirely, but that makes the wavelength steps non-uniform, which is not ideal for future analyses.

Patrick Hall

Thank you!

— Reply to this email directly, view it on GitHub https://github.com/jesserogerson/BALparams/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCDFAN5KXX3XQEDVPV7HWDZGWLRVAVCNFSM6AAAAABJCGOFECVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2DGNZYGMZTSMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

NicoGalvarino commented 3 months ago

Dear Patrick,

Thank you very much for your response. Then, the spectra should simply be normalized? Does the code expect this to be done in any specific way?

On 10-06-2024, at 15:06, yorkphall @.***> wrote:

Dear Nicolás, please confirm if you receive this email. I'm replying on behalf of myself and Jesse since I happen to have a free moment.

On Mon, 10 Jun 2024 at 08:27, Nicolás Guerra-Varas @.***> wrote:

I would like to ask exactly how the input spectrum should be normalized. In the code it says:

file: an ASCII spectrum of a quasar. It should be normalized to avoid bad pixels. It should be in the observed frame. (it will be deredshifted in-program) the first three columns must be: #wavelength flux flux_err

To avoid bad pixels, should they just be masked out? Should the continuum be subtracted?

The continuum should not be subtracted.

Bad pixels should ideally be interpolated over (replace them with the average value of pixels on either side of the masked region, for example). They can be removed entirely, but that makes the wavelength steps non-uniform, which is not ideal for future analyses.

Patrick Hall

Thank you!

— Reply to this email directly, view it on GitHub https://github.com/jesserogerson/BALparams/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCDFAN5KXX3XQEDVPV7HWDZGWLRVAVCNFSM6AAAAABJCGOFECVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2DGNZYGMZTSMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/jesserogerson/BALparams/issues/1#issuecomment-2158300941, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ3AP5RSOR4VQJQPGUL5BMTZGWQD3AVCNFSM6AAAAABJCGOFECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJYGMYDAOJUGE. You are receiving this because you authored the thread.