I try to correct some glitches in my spectra and I got stuck on the last part, the implementation... FML I have cleaend and prepared the file.
Between the times 70 and 75 lies a glitch in the detector which we need to correct. We identified and obtained the difference now we need to add this difference to each of the 1024 rows up to 70 and leave the 75 and further without any change. Adding the corrected and non-corrected values.
I have really tryied several ways and I cannot seem to obtain result, I am unsure on how to approach this correctly or if I need to define the indexes clearer.
spec= raw_spec_raw # 1024 x 199 csv wavelength/time
pre_glitch = spec['70.197969989']
post_glitch = spec['75.281351195']
diff = post_glitch - pre_glitch # series with 1024 elements
corr=[]
Any help would be appreciated, at least a hint. I have seen so many complex examples or other which are crazy over-simplified and do no teach anything.
Thank you and have a good day. This a graphical description of how simple it is, :(