Skip to content
Snippets Groups Projects
Commit 917e9046 authored by PADOVANI's avatar PADOVANI
Browse files

Update README.md

parent fbbe0955
Branches
No related tags found
No related merge requests found
......@@ -7,15 +7,15 @@ First the glitches are taken off of the data then the moving average is calculat
To take off the glitches their positions are detected, to do so each point is compared to the previous point, if the jump in intensity is bigger than a certain percentage then it's considered to be the start or end of a glitch.
This technique works sufficiently well but it still makes mistakes. Here is an example of such a mistake. The following picture shows 3 glitches with an increasing loss of intensity:
![fitting](glitches/images/white_light_first_range_nothing_done_zoom_cropped.png)
![fitting](glitches/v1/images/white_light_first_range_nothing_done_zoom_cropped.png)
Then after bringing the curve back to the baseline, it is no longer the case:
![fitting](glitches/images/white_light_first_range_remove_spikes_zoom_cropped.png)
![fitting](glitches/v1/images/white_light_first_range_remove_spikes_zoom_cropped.png)
And finally, the reason why this happened, the moving average dips where there is a glitch, it does exactly what it's not supposed to do (it is supposed to be the moving average of the curve with no glitches at all).
![fitting](glitches/images/white_light_first_range_nothing_done_moving_average_zoom_cropped.png)
![fitting](glitches/v1/images/white_light_first_range_nothing_done_moving_average_zoom_cropped.png)
This is just one example illustrating that the fitting script can change the data and therefore needs to be improved upon.
In each python plot script that brings the curve back to the baseline, it is possible to comment and uncomment certain lines to see the moving average without the glitches that is supposed to be the curve with no glitches (in green) like the above picture shows. The above illustrates one example of a glitch that is not ignored but there are other instances of this happening (for example in the third range for the white light).
......@@ -44,15 +44,15 @@ There doesn't seem to be an easy way to export the data off of the ssrl database
SSRL glitch db data around 7.5 keV:
![frame dcm mcxtrace](glitches/images/shift_digitilisation.png)
![frame dcm mcxtrace](glitches/v1/images/shift_digitilisation.png)
Monochromatic light energy range around 7.5 keV:
![frame dcm mcxtrace](glitches/images/shift_digitilisation_mcxtrace_mono_light_cropped.png)
![frame dcm mcxtrace](glitches/v1/images/shift_digitilisation_mcxtrace_mono_light_cropped.png)
White light energy range around 7.5 keV:
![frame dcm mcxtrace](glitches/images/shift_digitilisation_mcxtrace_white_light_cropped.png)
![frame dcm mcxtrace](glitches/v1/images/shift_digitilisation_mcxtrace_white_light_cropped.png)
The glitch positioned at 7.265 keV on the SSRL glitch db data is also at that position for the "theory glitches" and the McXtrace glitches. But the SSRL digitized plots of the beamline 4-3 show it at 7.234 keV. It has shifted. The BL 2-3 glitch has also shifted, although to a lesser amount. They are no longer at the same 7.265 keV position seen in the first picture.
......@@ -63,26 +63,26 @@ When the hkl 111 vector is pointing downwards, it's the plane 111 that reflects
To run instrument files showcasing this see the folder called "_questions/reversed_", the hkl debugger (see annex) will create a file showing which planes have been hit and how many times.
Taking into account the above information, here is a side view of the crystals and their frames chosen for the simulations. The x axis is directed towards the screen (direct trihedron).
![frame dcm mcxtrace](glitches/images/frame_dcm_mcxtrace_cropped.png)
![frame dcm mcxtrace](glitches/v1/images/frame_dcm_mcxtrace_cropped.png)
#### 6 Second crystal orientation (DONE)
There has to be a choice to orient the second crystal. Here is a view from above showing the choice taken. The crystal at the top is the crystal on the right in the above picture, and the crystal at the bottom is the crystal on the left in the above picture.
![our choice dcm](glitches/images/our_choice_dcm.png)
![our choice dcm](glitches/v1/images/our_choice_dcm.png)
Here is another possible choice:
![other choice dcm](glitches/images/other_choice_dcm.png)
![other choice dcm](glitches/v1/images/other_choice_dcm.png)
The possibly naive choice would have simply been the following two pictures.
Here's a side view with the x axis directed away from the screen (direct trihedron):
![frame dcm mcxtrace naive choice](glitches/images/frame_dcm_mcxtrace_cropped_naive_choice.png)
![frame dcm mcxtrace naive choice](glitches/v1/images/frame_dcm_mcxtrace_cropped_naive_choice.png)
And the view from above with the z axis directed towards the screen (direct trihedron):
![dcm naive choice](glitches/images/other_choice_dcm_naive_choice.png)
![dcm naive choice](glitches/v1/images/other_choice_dcm_naive_choice.png)
What is done in reality?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment