Difference: 20151016_MSciSpectrocopyLab (1 vs. 6)

Revision 620 Oct 2015 - JosephBayley

Line: 1 to 1
 
META TOPICPARENT name="StewartBoogertSpectroscopy2015"
Set Up
Line: 7 to 7
 
  • Set exposure time to 0.1s.
1. Data Taking & Analysis
Deleted:
<
<

 
  • Firstly, we centred the 3 peaks in the frame by changing the grating angle - the setting on the micrometer was 3mm.
Added:
>
>
Focus
 
  • We then changed the distance between the camera and the lens to alter the focus. We intend to take a range of frames at different focuses such that we can plot the standard deviation (stdev) of the width of the spectral line as a function of this distance, in order to find the best focus distance.
  • We started the focus distance at 21mm, where the image was clearly out of focus. We decreased in increments of 0.1mm each time until we reached 19mm, where once again the image was out of focus.
  • From looking at the images, we believe the best focus distance is around 20mm.
  • At 21.0mm the image is clearly out of focus
Changed:
<
<
  • 21.0mm_focus_image.png:
    21.0mm_focus_image.png
  • We wrote a code on python to analyse all of the frames. We first chose a random frame to project onto the x axis; this gave us the spectrum. By looking at the image, we then selected a slice from the data just including one peak. We then fit a Gaussian to the data; this gave us the value of the variance ( stdev^2) and the position of the peak (the mean). We programmed a loop which found the stdev of all the frames, and plotted these stdevs as a function of the focus distance d in mm. This plot can be seen below.
>
>
  • 21.0mm_focus_image.png:
    21.0mm_focus_image.png
  • The projection of this image then has wide lines and a larger standard deviation as the plot below shows:

  • 21.0mm_focus_projection.png:
    21.0mm_focus_projection.png

  • We wrote a code on python to analyse all of the frames. We first chose a random frame to project onto the x axis; this gave us the spectrum. By looking at the image, we then selected a slice from the data just including one peak. We then fit a Gaussian to the data; this gave us the value of the stdev and the position of the peak (the mean). We programmed a loop which found the stdev of all the frames, and plotted these stdevs as a function of the focus distance d in mm. This plot can be seen below.
 
  • Focus_sigma.png:
    Focus_sigma.png

  • As you change the focus, not only will the width of the peak (stdev) change, but also the amplitude of the peak. When in focus, the image will be brighter and will therefore correspond to a higher number of photoelectrons (N_pe) and therefore a larger amplitude. As the image begins to defocus, the lines will be dimmer, corresponding to less N_pe and therefore a lower amplitude. Therefore to increase the accuracy of this plot, we decided to plot stdev - amplitude on the y axis as a function of focus distance d, as they are both changing with d. This plot gave us a more accurate indication of the best focus distance. This plot can be seen below.
Line: 22 to 26
 
  • As you can see for this plot (where we examined the far peak on the right), the best focus distance was d = 19.9mm, this image can be seen below,
  • 19.9mm_focus_image.png:
    19.9mm_focus_image.png
Added:
>
>
  • This gave a better projection with a much smaller standard deviation as shown below.

  • 19.9mm_focus_image_projection.png:
    19.9mm_focus_image_projection.png
 
  • However, what we found interesting was that by observing another peak (the far right peak, for example), the plot showed that the best focus distance was d=20.1mm?
Changed:
<
<
  • We then repeated this same procedure but this time changing the camera angle; this changes the orientation of the 3 lines. Once again, both the stdev and the amplitude change with the camera angle. We plotted stdev - amplitude as a function of camera angle in mm on the micrometer.
>
>
Angle
  • We then repeated this same procedure but this time changing the camera angle; this changes the orientation of the 3 lines. Once again, both the stdev and the amplitude change with the camera angle.
  • The image below shows the image with a small camera angle of 2mm, this is clearly out of line.

  • 2.0mm.png:
    2.0mm.png

  • The projection of this then has a wide standard deviation as shown below.

  • 2.0mm_projection.png:
    2.0mm_projection.png

  • We initially plotted standard deviation as a function of camera angle in mm on the micrometer.
 
  • Angle_sigma.png:
    Angle_sigma.png
Added:
>
>
  • The standard deviation minus the amplitude was then plotted against the roatation angle of the camera similar to the focus plot above.
 
  • Angle_sigma_amp.png:
    Angle_sigma_amp.png
Added:
>
>
  • Below an image of the straighter lines at 4.6mm can be seen.
  • 4.6mm.png:
    4.6mm.png

  • The projection of this then has a smaller standard deviation as shown below.

  • 4.6mm_projection.png:
    4.6mm_projection.png
 2. Errors

  • Now we have both plots, we need to find the errors. For the focus distance and camera angle, the error on these is just the smallest division on the micrometer; this is 0.01mm.
Line: 35 to 60
 
  • After this, we then changed the angle of the grating in an attempt to find further spectral lines. Considering we started the day at a grating angle of 3mm, we took numerous frames between the range between 0mm and 10mm, to explore both directions in our search for more spectral lines.
  • We found no further spectral lines below 3mm, but we found a couple of faint lines and 1 bright line above 3mm and below 10mm.
Added:
>
>
  • A few bright lines can be seen in the image below at 4.0mm.
  • 4.0mm.png:
    4.0mm.png
 
  • However, we then changed the exposure time and the screen stretch (SS) values. The SS changes the shades of gray of the image, allowing us to see parts of the image that we would not normally be able to see, such as faint spectral lines.
  • Min value of SS: 126.25
  • Max value of SS: 272.32
Line: 53 to 81
 
META FILEATTACHMENT attachment="Angle_sigma_amp.png" attr="h" comment="" date="1445249890" name="Angle_sigma_amp.png" path="Angle_sigma_amp.png" size="83144" user="zxap044" version="2"
META FILEATTACHMENT attachment="Focus_sigma.png" attr="h" comment="" date="1445249889" name="Focus_sigma.png" path="Focus_sigma.png" size="60344" user="zxap044" version="2"
META FILEATTACHMENT attachment="Focus_sigma_amp.png" attr="h" comment="" date="1445249888" name="Focus_sigma_amp.png" path="Focus_sigma_amp.png" size="81344" user="zxap044" version="2"
Changed:
<
<
META FILEATTACHMENT attachment="19.9mm_focus_image.png" attr="h" comment="" date="1445249215" name="19.9mm_focus_image.png" path="19.9mm_focus_image.png" size="137306" user="zxap044" version="1"
META FILEATTACHMENT attachment="21.0mm_focus_image.png" attr="h" comment="" date="1445249376" name="21.0mm_focus_image.png" path="21.0mm_focus_image.png" size="349883" user="zxap044" version="1"
>
>
META FILEATTACHMENT attachment="19.9mm_focus_image.png" attr="h" comment="" date="1445339569" name="19.9mm_focus_image.png" path="19.9mm_focus_image.png" size="137306" user="zxap044" version="3"
META FILEATTACHMENT attachment="21.0mm_focus_image.png" attr="h" comment="" date="1445338902" name="21.0mm_focus_image.png" path="21.0mm_focus_image.png" size="558033" user="zxap044" version="3"
META FILEATTACHMENT attachment="4.0mm.png" attr="h" comment="" date="1445336703" name="4.0mm.png" path="4.0mm.png" size="55132" user="zxap044" version="1"
META FILEATTACHMENT attachment="2.0mm.png" attr="h" comment="" date="1445339607" name="2.0mm.png" path="2.0mm.png" size="372380" user="zxap044" version="2"
META FILEATTACHMENT attachment="4.6mm.png" attr="h" comment="" date="1445337514" name="4.6mm.png" path="4.6mm.png" size="198872" user="zxap044" version="1"
META FILEATTACHMENT attachment="19.9mm_focus_image_projection.png" attr="h" comment="" date="1445339273" name="19.9mm_focus_image_projection.png" path="19.9mm_focus_image_projection.png" size="60853" user="zxap044" version="1"
META FILEATTACHMENT attachment="21.0mm_focus_projection.png" attr="h" comment="" date="1445339273" name="21.0mm_focus_projection.png" path="21.0mm_focus_projection.png" size="56373" user="zxap044" version="1"
META FILEATTACHMENT attachment="2.0mm_projection.png" attr="h" comment="" date="1445339878" name="2.0mm_projection.png" path="2.0mm_projection.png" size="56488" user="zxap044" version="1"
META FILEATTACHMENT attachment="4.6mm_projection.png" attr="h" comment="" date="1445339878" name="4.6mm_projection.png" path="4.6mm_projection.png" size="60358" user="zxap044" version="1"

Revision 519 Oct 2015 - JosephBayley

Line: 1 to 1
 
META TOPICPARENT name="StewartBoogertSpectroscopy2015"
Set Up
Line: 12 to 12
 
  • We then changed the distance between the camera and the lens to alter the focus. We intend to take a range of frames at different focuses such that we can plot the standard deviation (stdev) of the width of the spectral line as a function of this distance, in order to find the best focus distance.
  • We started the focus distance at 21mm, where the image was clearly out of focus. We decreased in increments of 0.1mm each time until we reached 19mm, where once again the image was out of focus.
  • From looking at the images, we believe the best focus distance is around 20mm.
Added:
>
>
  • At 21.0mm the image is clearly out of focus
  • 21.0mm_focus_image.png:
    21.0mm_focus_image.png
 
  • We wrote a code on python to analyse all of the frames. We first chose a random frame to project onto the x axis; this gave us the spectrum. By looking at the image, we then selected a slice from the data just including one peak. We then fit a Gaussian to the data; this gave us the value of the variance ( stdev^2) and the position of the peak (the mean). We programmed a loop which found the stdev of all the frames, and plotted these stdevs as a function of the focus distance d in mm. This plot can be seen below.
Changed:
<
<
*PLOT HERE* * ALSO INCLUDE SOME IMAGES
>
>
  • Focus_sigma.png:
    Focus_sigma.png
 
  • As you change the focus, not only will the width of the peak (stdev) change, but also the amplitude of the peak. When in focus, the image will be brighter and will therefore correspond to a higher number of photoelectrons (N_pe) and therefore a larger amplitude. As the image begins to defocus, the lines will be dimmer, corresponding to less N_pe and therefore a lower amplitude. Therefore to increase the accuracy of this plot, we decided to plot stdev - amplitude on the y axis as a function of focus distance d, as they are both changing with d. This plot gave us a more accurate indication of the best focus distance. This plot can be seen below.
Changed:
<
<
*PLOT HERE*
>
>
  • Focus_sigma_amp.png:
    Focus_sigma_amp.png
 
Changed:
<
<
  • As you can see for this plot (where we examined the far peak on the right), the best focus distance was d = 20.1mm.
  • However, what we found interesting was that by observing another peak (the middle one, for example), the plot showed that the best focus distance was d=19.9mm?
  • We then repeated this same procedure but this time changing the camera angle; this changes the orientation of the 3 lines. Once again, both the stdev and the amplitude change with the camera angle. We plotted stdev - amplitude as a function of camera angle in mm on the micrometer.
**plot here**
>
>
  • As you can see for this plot (where we examined the far peak on the right), the best focus distance was d = 19.9mm, this image can be seen below,
  • 19.9mm_focus_image.png:
    19.9mm_focus_image.png
 
Added:
>
>
  • However, what we found interesting was that by observing another peak (the far right peak, for example), the plot showed that the best focus distance was d=20.1mm?
  • We then repeated this same procedure but this time changing the camera angle; this changes the orientation of the 3 lines. Once again, both the stdev and the amplitude change with the camera angle. We plotted stdev - amplitude as a function of camera angle in mm on the micrometer.
  • Angle_sigma.png:
    Angle_sigma.png
  • Angle_sigma_amp.png:
    Angle_sigma_amp.png
 2. Errors

  • Now we have both plots, we need to find the errors. For the focus distance and camera angle, the error on these is just the smallest division on the micrometer; this is 0.01mm.
Line: 40 to 44
 
  • At 5mm, we found another faint line and numerous very faint lines. We therefore increased the time exposure to t=1.2s and took 5 frames, in the hope that when these images are superimposed, the background is reduced and the signal will be more significant.
  • At 6mm, we found another relatively bright line - because of this, we only took 1 frame.
  • At 8mm, we found at least 3 very faint lines in the frame. We took 5 frames at 8mm and t=1.2s.
Changed:
<
<
-- AshleaKemp - 16 Oct 2015
>
>
 
Added:
>
>
-- AshleaKemp - 16 Oct 2015
 
META FILEATTACHMENT attachment="20151016_JB_AK.zip" attr="h" comment="" date="1445176339" name="20151016_JB_AK.zip" path="20151016_JB_AK.zip" size="53546495" user="zxap044" version="1"
Added:
>
>
META FILEATTACHMENT attachment="Angle_sigma.png" attr="h" comment="" date="1445249890" name="Angle_sigma.png" path="Angle_sigma.png" size="62523" user="zxap044" version="3"
META FILEATTACHMENT attachment="Angle_sigma_amp.png" attr="h" comment="" date="1445249890" name="Angle_sigma_amp.png" path="Angle_sigma_amp.png" size="83144" user="zxap044" version="2"
META FILEATTACHMENT attachment="Focus_sigma.png" attr="h" comment="" date="1445249889" name="Focus_sigma.png" path="Focus_sigma.png" size="60344" user="zxap044" version="2"
META FILEATTACHMENT attachment="Focus_sigma_amp.png" attr="h" comment="" date="1445249888" name="Focus_sigma_amp.png" path="Focus_sigma_amp.png" size="81344" user="zxap044" version="2"
META FILEATTACHMENT attachment="19.9mm_focus_image.png" attr="h" comment="" date="1445249215" name="19.9mm_focus_image.png" path="19.9mm_focus_image.png" size="137306" user="zxap044" version="1"
META FILEATTACHMENT attachment="21.0mm_focus_image.png" attr="h" comment="" date="1445249376" name="21.0mm_focus_image.png" path="21.0mm_focus_image.png" size="349883" user="zxap044" version="1"

Revision 418 Oct 2015 - JosephBayley

Line: 1 to 1
 
META TOPICPARENT name="StewartBoogertSpectroscopy2015"
Set Up
Line: 41 to 41
 
  • At 6mm, we found another relatively bright line - because of this, we only took 1 frame.
  • At 8mm, we found at least 3 very faint lines in the frame. We took 5 frames at 8mm and t=1.2s.
-- AshleaKemp - 16 Oct 2015 \ No newline at end of file
Added:
>
>

META FILEATTACHMENT attachment="20151016_JB_AK.zip" attr="h" comment="" date="1445176339" name="20151016_JB_AK.zip" path="20151016_JB_AK.zip" size="53546495" user="zxap044" version="1"

Revision 316 Oct 2015 - AshleaKemp

Line: 1 to 1
 
META TOPICPARENT name="StewartBoogertSpectroscopy2015"
Set Up
Line: 31 to 31
 
  • After this, we then changed the angle of the grating in an attempt to find further spectral lines. Considering we started the day at a grating angle of 3mm, we took numerous frames between the range between 0mm and 10mm, to explore both directions in our search for more spectral lines.
  • We found no further spectral lines below 3mm, but we found a couple of faint lines and 1 bright line above 3mm and below 10mm.
Added:
>
>
  • However, we then changed the exposure time and the screen stretch (SS) values. The SS changes the shades of gray of the image, allowing us to see parts of the image that we would not normally be able to see, such as faint spectral lines.
  • Min value of SS: 126.25
  • Max value of SS: 272.32
  • exposure time t=0.8s
  • At an angle grating of 2mm, we found 2 faint spectral lines we did not see before. We therefore took 5 frames at 2mm and t=0.8s.
  • At 4mm, we found another 2 fainter spectral lines. Again, we took 5 frames at this configuration.
  • At 5mm, we found another faint line and numerous very faint lines. We therefore increased the time exposure to t=1.2s and took 5 frames, in the hope that when these images are superimposed, the background is reduced and the signal will be more significant.
  • At 6mm, we found another relatively bright line - because of this, we only took 1 frame.
  • At 8mm, we found at least 3 very faint lines in the frame. We took 5 frames at 8mm and t=1.2s.
 -- AshleaKemp - 16 Oct 2015

Revision 216 Oct 2015 - AshleaKemp

Line: 1 to 1
 
META TOPICPARENT name="StewartBoogertSpectroscopy2015"
Set Up

  • Turned on spectrometer, Cadmium lamp and camera.
  • Set the cooler to 5 deg C initally (Temperature outside is about 13 deg C).
  • Set exposure time to 0.1s.
Changed:
<
<
Data Taking & Analysis
>
>
1. Data Taking & Analysis
 
Changed:
<
<
  • Firstly, we centred the 3 peaks in the frame by changing the grating angle.
>
>
  • Firstly, we centred the 3 peaks in the frame by changing the grating angle - the setting on the micrometer was 3mm.
 
  • We then changed the distance between the camera and the lens to alter the focus. We intend to take a range of frames at different focuses such that we can plot the standard deviation (stdev) of the width of the spectral line as a function of this distance, in order to find the best focus distance.
  • We started the focus distance at 21mm, where the image was clearly out of focus. We decreased in increments of 0.1mm each time until we reached 19mm, where once again the image was out of focus.
  • From looking at the images, we believe the best focus distance is around 20mm.
Line: 18 to 18
 
  • As you change the focus, not only will the width of the peak (stdev) change, but also the amplitude of the peak. When in focus, the image will be brighter and will therefore correspond to a higher number of photoelectrons (N_pe) and therefore a larger amplitude. As the image begins to defocus, the lines will be dimmer, corresponding to less N_pe and therefore a lower amplitude. Therefore to increase the accuracy of this plot, we decided to plot stdev - amplitude on the y axis as a function of focus distance d, as they are both changing with d. This plot gave us a more accurate indication of the best focus distance. This plot can be seen below.
*PLOT HERE*
Changed:
<
<

  • We then repeated this same procedure but this time changing the camera angle; this changes the orientation of the 3 lines. Once again, both the stdev and the amplitude change with the camera angle. We plotted stdev - amplitude as a function of camera angle in mm on the micrometer.
>
>
  • As you can see for this plot (where we examined the far peak on the right), the best focus distance was d = 20.1mm.
  • However, what we found interesting was that by observing another peak (the middle one, for example), the plot showed that the best focus distance was d=19.9mm?
  • We then repeated this same procedure but this time changing the camera angle; this changes the orientation of the 3 lines. Once again, both the stdev and the amplitude change with the camera angle. We plotted stdev - amplitude as a function of camera angle in mm on the micrometer.
 **plot here**
Changed:
<
<
Errors
>
>
2. Errors

  • Now we have both plots, we need to find the errors. For the focus distance and camera angle, the error on these is just the smallest division on the micrometer; this is 0.01mm.
  • As we are using curve_fit on python, we can find 1 stdev errors on the parameters that curve_fit guessed to fit the gaussian to our data. These parameters are the amplitude, the mean, the stdev and the background. By using pcov (the estimated covarience of popt, where popt are the optimal parameters that curve_fit guessed), we can find the errors (to 1 stdev) on these parameters by doing perr =np.sqrt(np.diag(pcov)). We then selected the errors in the amplitude and stdev separately by picking out these elements from the 1D array. We then attempted to propagate these errors and plot them.
3. Further Data Taking
 
Changed:
<
<
  • Now we have both plots, we need to find the errors. For the focus distance and camera angle, the error on these is just the smallest division on the micrometer; this is 0.1mm.
  • As we are using curve_fit on python, we can find 1 stdev errors on the parameters that curve_fit guessed to fit the gaussian to our data. These parameters are the amplitude, the mean, the stdev and the background. By using pcov (the estimated covarience of popt, where popt are the optimal parameters that curve_fit guessed), we can find the errors (to 1 stdev) on these parameters by doing perr =np.sqrt(np.diag(pcov)).
>
>
  • After this, we then changed the angle of the grating in an attempt to find further spectral lines. Considering we started the day at a grating angle of 3mm, we took numerous frames between the range between 0mm and 10mm, to explore both directions in our search for more spectral lines.
  • We found no further spectral lines below 3mm, but we found a couple of faint lines and 1 bright line above 3mm and below 10mm.
 -- AshleaKemp - 16 Oct 2015

Revision 116 Oct 2015 - AshleaKemp

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="StewartBoogertSpectroscopy2015"
Set Up

  • Turned on spectrometer, Cadmium lamp and camera.
  • Set the cooler to 5 deg C initally (Temperature outside is about 13 deg C).
  • Set exposure time to 0.1s.
Data Taking & Analysis


  • Firstly, we centred the 3 peaks in the frame by changing the grating angle.
  • We then changed the distance between the camera and the lens to alter the focus. We intend to take a range of frames at different focuses such that we can plot the standard deviation (stdev) of the width of the spectral line as a function of this distance, in order to find the best focus distance.
  • We started the focus distance at 21mm, where the image was clearly out of focus. We decreased in increments of 0.1mm each time until we reached 19mm, where once again the image was out of focus.
  • From looking at the images, we believe the best focus distance is around 20mm.
  • We wrote a code on python to analyse all of the frames. We first chose a random frame to project onto the x axis; this gave us the spectrum. By looking at the image, we then selected a slice from the data just including one peak. We then fit a Gaussian to the data; this gave us the value of the variance ( stdev^2) and the position of the peak (the mean). We programmed a loop which found the stdev of all the frames, and plotted these stdevs as a function of the focus distance d in mm. This plot can be seen below.
*PLOT HERE* * ALSO INCLUDE SOME IMAGES

  • As you change the focus, not only will the width of the peak (stdev) change, but also the amplitude of the peak. When in focus, the image will be brighter and will therefore correspond to a higher number of photoelectrons (N_pe) and therefore a larger amplitude. As the image begins to defocus, the lines will be dimmer, corresponding to less N_pe and therefore a lower amplitude. Therefore to increase the accuracy of this plot, we decided to plot stdev - amplitude on the y axis as a function of focus distance d, as they are both changing with d. This plot gave us a more accurate indication of the best focus distance. This plot can be seen below.
*PLOT HERE*


  • We then repeated this same procedure but this time changing the camera angle; this changes the orientation of the 3 lines. Once again, both the stdev and the amplitude change with the camera angle. We plotted stdev - amplitude as a function of camera angle in mm on the micrometer.
**plot here**

Errors

  • Now we have both plots, we need to find the errors. For the focus distance and camera angle, the error on these is just the smallest division on the micrometer; this is 0.1mm.
  • As we are using curve_fit on python, we can find 1 stdev errors on the parameters that curve_fit guessed to fit the gaussian to our data. These parameters are the amplitude, the mean, the stdev and the background. By using pcov (the estimated covarience of popt, where popt are the optimal parameters that curve_fit guessed), we can find the errors (to 1 stdev) on these parameters by doing perr =np.sqrt(np.diag(pcov)).
-- AshleaKemp - 16 Oct 2015
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding RHUL Physics Department TWiki? Send feedback