samuelyeewl / specmatch-emp

Empirical SpecMatch
9 stars 8 forks source link

wget and plotting #13

Closed petigura closed 8 years ago

petigura commented 8 years ago

made some small tweaks to the setup.py script so that the files get explicit names. My version of wget was downloading these files as file file.1 file.2 etc.

I also made some tweaks to the shifting diagnostic plots. image

image

blue to red goes in order of increasing wavelength.

I've notice that there are still some outliers in the shift values, and it probably makes sense to implement some iterative outlier rejection. I could image a scheme along the following lines:

  1. Compute a robust fit to shift vs. pixel value
  2. Compute a robust sigma about this best fit (e.g. median absolute deviation)
  3. If a given segment yields a shift that's more than 2 sigma from the robust fit, replace it with the robust value
  4. Fit each order independently using the cleaned shift vs. pixel values.