Skip to content

spectral_analysis dirtsimple

stscieisenhamer edited this page Oct 31, 2014 · 1 revision

A functionality we are looking to implement, in general, is a "quick-look/simple calculation" tool that would run from a python shell or script.

The idea is best outlined as follows, using an oversimplified example: A user wants to visually pick emission lines out of a list of spectra. The flow would be like:

>>> speclist =[spec1data, ...]
>>> lineposlist = []
>>> for spectrum in speclist:
...     linepositions = find_lines(spectrum)
...     lineposlist.append(linepositions)

The function find_lines would be an interactive task that would:

  • bring up a plot of the spectrum, with potentially pre-fitted emissions
  • allow the user to add/subtract/refit lines
  • when the user is done, the user quits the interactive task which then returns a list of the line positions.