PyWiFeS / pipeline

The Python data reduction pipeline for WiFeS
7 stars 26 forks source link

Added the capability for multple arc files, with linear interpolation #2

Closed mikeireland closed 9 years ago

mikeireland commented 9 years ago

of wavelength scales in-between the time of each arc. Also prevented a crash if the flat cleanup step can't be run (e.g. for any stellar mode data).

ghost commented 9 years ago

That looks good. I will most likely add a few minor things when merging it:

Does this sound reasonable to you ?

mikeireland commented 9 years ago

All agreed. The arcs should not be extrapolated - I'm sure that if you used a Gaussian process to find the optimal wavelength solution the end result would be close to a linear interpolation or nearest arc if not possible. Note that the times are not in the headers of the wsol fits files, so this also has to be transferred from the headers of the original files. My minimum standard for the dodgy "time from filename" change was that the code should work and shouldn't break existing analyses (which only use one arc).

ghost commented 9 years ago

Good point about the header of the wsol files. I'll track their creation down, and make sure that (at least) the MJD is included when they are created. Will probably get around doing this early next week, and will then update the repository accordingly.

mikeireland commented 9 years ago

Hi Fred - any progress on your additions here to my pull request? I don't want to end up with a diverging fork if possible.

ghost commented 9 years ago

Sorry, thesis submission got in the way. I updated the reduce_red/blue_data.py files in the master branch following your pull request, and implemented the points raised in the discussion above:

I did a quick test and it seems to work fine (i.e. no error thrown). I do not have time to go deeper and perform more extended tests just now, so, please let me know if you spot something odd/wrong when you try the new reduction recipes.

Cheers !

P.S.: closing pull request. I think it'll be best for all new (possible) bugs associated with this update to be added to the 'issues' page.