astropy / astropy/specutils

linear to log spectral axis conversion

Open
#359 2 comments 0 reactions 0 assignees View on GitHub
discussion manipulation
Dominant language
Python
Stars
204
Forks
134
Avg merge
12h 55m
Merged PRs (30d)
1

Description

Is there the ability to convert a Spectrum1D object's spectral axis from linear to log space (and reverse), with flux conservation? I have seen other issues (e.g. #255) discussing resampling/rebinning with or without flux conservation, but I haven't seen this particular case discussed. There are probably numerous implementations of this case out there (e.g. Michele Cappellari's ppxf package has a function called log_rebin - [online docs here](http://www-astro.physics.ox.ac.uk/~mxc/software/#ppxf)), would be great to have this integrated into specutils. Its a common step in a lot of analysis that involved radial velocities.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing issue #255 and the referenced ppxf log_rebin documentation to understand how resampling and flux conservation are handled. Define the expected behavior for converting a Spectrum1D spectral axis between linear and logarithmic spacing in both directions. Done means the capability is integrated into specutils with flux conservation and documented or tested behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.