Skip to content

Conversation

@fdannert
Copy link

Hello @ACCarnall ,

I have run into the case that I would like to use SpectRes, but I need the output to be in specific bins. In my understanding, the current SpectRes only gives an output where the output bins are generated according to the input array new_wavs.

Therefore I made a very small change and added the edge_mode argument. If set to True,

  • the new_wavs array is no longer treated as the central wavelength values from which the bins are created
  • the new_wavs array is treated as containing the specific bin edges for the output

Since edge_mode is set to False by default, this change does not interfere with any current SpectRes usages.

I already ran example_hizquasar.py successfully. For example_bc03.py I could not find the correct input data.

Thank you and cheers,
Felix

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

Successfully merging this pull request may close these issues.

1 participant