California-Planet-Search / grandsol

Grand Solution - Doppler forward modeling
MIT License
0 stars 0 forks source link

Add additional flexibility to the wavelength solution #22

Closed bjfultn closed 7 years ago

bjfultn commented 8 years ago

Add additional flexibility to the wavelength solution within grand. Spline fit with nodes at the LSF locations?

bjfultn commented 8 years ago

@JeffValenti send wavelength solution used for the simulations to Jay.

JeffValenti commented 8 years ago

The wavelength solution in hires.wave is a 4th-order polynomial in the pixel range [20:4000]. There is a wavelength discontinuity between this central region and the edges at [0:19] and [4001:4020]. The simulated data replaces wavelengths in these edge regions with values obtained by extrapolating the 4th-order polynomial in the central region. Thus, the simulated wavelength scale can be exactly modeled by grand.F, which currently uses a 4th-order polynomial.

JeffValenti commented 8 years ago

I added a dump= keyword to simobs_set.pro and simobs_one.pro. Specifying dump=1 causes simobs_one.pro to write out pixel level information (including wavelength scale) for each observation and echelle order. Specifying dump=2 causes simobs_one.pro to write out supersampled information for each observation and echelle order. I reran my most recent simulation with dump=2, creating a full set of auxiliary files:

simobs_one,'sun','keck-nso-52.5','jay2015','hires',-21766.49,0,'sun.018',seed=200,dump=2

I used the same pseudo-random number seed as last time, so the simulated spectra are identical. The new files are in 13_sun_nso525_jay15_hires_30_100_0_0.tar.gz [1 GB] on Box.

We can compare the simulated wavelength scale for each observation and order with the output wavelength scale that BJ has already determined using iGrand. See Issue #3.

JeffValenti commented 8 years ago

@JayVB and I just discussed this issue. Currently, the wavelength solution is a spline curve with 5 nodes across an echelle order that is immediately fitted with a 4th-order polynomial. Currently, grand.F uses linear least squares to solves for wavelength node values by linearizing the RMS residual of the fit with respect to wavelength node values. Jay will:

See Issue #21 for a description of the new wavelength inputs, outputs, and switches that Jay will implement in grand.F.

JayVB commented 8 years ago

I have made some progress over the last few days on my main assignment (this issue):

bjfultn commented 8 years ago

Update: this has been implemented, but its not performing very well. @JayVB is working on it and I will leave this issue open for now

bjfultn commented 8 years ago

From our 6/28 meeting: Jay has implemented his "old fitter" with the new wavelength solution prescription and it appears to be working.

@JayVB will look into the "kinks" in the input vs. output wavelength solution.

bjfultn commented 7 years ago

Closing this along with issue #38