Skip to content

spectrum discussion

eteq edited this page Feb 8, 2012 · 6 revisions

Spectrum 1D brainstorm

Spectrum Class

Hierarchy:

inherits from NDData? SPectral super class?

API

call to interpolate?

Wavelength slicing?

WCS

Utils

##Notes from 2/8/2012 videocon

  • Discussion of utils: functions that don't use the Spectrum-ish class interface

  • Overview of nddata and WCS plans

  • Dimitri: Don't over-engineer? - start with Spectrum1D, add something in between

  • wolfgang: add a dummy-class to stand-in for simple WCS?

  • Discussion: Opt for no dummy-class for now

  • Adam: Have a "spectrum block"

  • Dimitri: require plot on Nddata?

  • Constructor form: init(self, disp, flux, meta, error, mask, units)

  • newspec=spec(x) w/ flux=spec(x,has_array=True) ?

  • There should be a spec.plot() (perhaps even in nddata?) *discussion of slice vs. interpolate syntax - conclusion is that something like spec.interpolate and spec.slice is better because its more explicit, but we should ask the list if we want to also have spec(...) or spec[...] options, after the methods are in place.

Clone this wiki locally