Skip to content

Spectrum 1D concept & issues

wkerzendorf edited this page Feb 25, 2012 · 17 revisions

Spectrum1D API concepts and issues

Implementation questions

Instantiator

  • two main suggestions: instantiation with a flux & a dispersion array OR a flux array and a WCS object

Advantage flux, dispersion:

Advantage wcs:

Slicing

  • slicing can work on either dispersion or pixels

  • keyword to switch between both of them

  • getitem overload?

arithmetic

  • operator overload?

if operator overload

  • what operands allowed? scalars, spectrum same dispersion, spectrum different dispersion
  • op-mode setting in spectrum1d

interpolator

  • for now simple np.interp?
  • thinking about interpolation using wcs?

API questions

Copy vs inplace

  • meta data copy -- time intensive?

  • pythonic to do copy?

methods vs functions

  • when to use functions, when spectrum1d internal methods.

  • argument plotting

  • argument io

Time and date meeting times: http://www.timeanddate.com/worldclock/meetingdetails.html?year=2012&month=2&day=29&hour=20&min=0&sec=0&p1=111&p2=240&p3=37&p4=250&p5=224

Clone this wiki locally