# Calculating the sun's photospheric temperature, an undergraduate physics laboratory.

INTRODUCTIONThe sun's temperature has been calculated in a variety of ways, such as by the heating and cooling rates of different objects in sunlight (Lee et al. 1997; Perry 1979), or by using Wien's displacement law (Marr and Wilkin 2012; Biermann et al. 2002; Bell 1968), and surely through many other methods. Many of the experiments in the literature focus on narrow band intensities (Bell 1968; Goldberg 1955; Ratcliff et al. 1992; Zanetti 1984). Several authors, with whom we agree, also contend that the use of Wien's displacement law for such an experiment is misleading and support the use of Planck's radiation distribution (Marr and Wilkin 2012; Biermann et al. 2002; Zanetti 1984). However, there seems to be a lack of literature related to determining the sun's temperature using wide-range spectral data, which is easily obtained by newer spectrometers. This project provides step-by-step instructions about the experiment, simulation, and modeling processes.

This laboratory develops students' abilities in applying basic physics concepts to real-life applications, and gives them significant experience in computational physics. It encourages them to use MATLAB software (MathWorks 2016) to develop their own scripts toward that purpose. This project also gives students hands-on experience in working with spectrometers and analyzing real data, while promoting and developing a rigorous and consistent application of the scientific method. The setting in which we envision carrying out this exercise is the upper level undergraduate physics laboratory.

Here the students apply concepts such as blackbody radiation distributions and the Stefan-Boltzmann law (Maslov 2008). In particular students experience how such measurements apply to real world situations. The principles required to create and understand this experiment coincide with both introductory physics as well as upper level courses, including modern physics, where blackbody radiation is first discussed in the typical university undergraduate physics curriculum. Making use of a correctly calibrated spectrometer and capture software in conjunction with a programming tool, blackbody spectral data can be obtained and its associated temperature can be determined to an accuracy primarily dependent on atmospheric conditions. This particular application uses an Ocean Optics QE65 Pro spectrometer, an Ocean Optics HL-2000-Cal calibrated halogen lamp, a 200 pm optical fiber, a cc-3 cosine corrector, SpectraSuite software, and a programming environment (we use MATLAB).

The nature of the sun is complex, and it is important to realize we make several assumptions here. We assume the sun is a perfect sphere of radius R, with a uniform temperature. Furthermore, absorption and scattering by the atmosphere play a major role in distorting the spectrum, the effects of which are essentially ignored here. Regardless of these large assumptions on our part, we can still calculate the effective temperature of the sun's photosphere with fair accuracy.

THEORY

It is known that all objects with a temperature above absolute zero radiate electromagnetic waves, and this phenomenon is known as blackbody radiation. The amount of radiated energy in a given wavelength range depends on the temperature. This property is described by Planck's blackbody radiation distribution, [S.sub.[lambda]] (Planck 2013):

[S.sub.[lambda]] = 2[pi][hc.sup.2]/[[lambda].sup.5](exp[hc/[lambda]kT]-1), (1)

where h (~6.626 x [10.sup.-34] [m.sup.2] x kg x [s.sup.-1]) is Planck's constant, T (K) is the blackbody temperature, k (~1.381 x [10.sup.-23] [m.sup.2] x kg x [s.sup.-2] x [K.sup.-1]) is the Boltzmann constant, [lambda](m) is the wavelength, and c (~2998 x [10.sup.8] m x [s.sup.-1]) is the speed of light. From Planck's distribution, it can be seen that hotter objects' radiation peaks at shorter wavelengths than cooler objects. For example, about 39% of the sun's radiation is in the visible spectrum, with a peak (Softer and Lynch 1999) near 500 nm, while the earth's radiation primarily peaks in the infrared. The power per unit area radiated can be determined by integrating the Planck distribution over all wavelengths, yielding the Stefan-Boltzmann law

[S.sub.[lambda]] = (1/A) dP/d[lambda], (2)

where A ([m.sup.2]) is the effective surface area. Solving Eq. (2) for P, the approximate power radiated by the sun is given by

P = 4[pi][R.sup.2][sigma][T.sup.4], (3)

where 4[pi][R.sup.2] is the surface area of the sun's photosphere, which we have assumed to be spherical, and [sigma] (~5.67 x [10.sup.-8] W x [m.sup.-2] x [K.sup.-4]) is the Stefan-Boltzmann constant. The irradiance, I (W x [m.sup.-2]), at a distance r from the sun, is approximately given by the ratio P/[A.sub.r]

I = P/[A.sub.r] = 4[pi][R.sup.2][sigma][T.sup.4]/4[pi][r.sup.2] = [sigma][T.sup.4] [(R/r).sup.2], (4)

where [A.sub.r] is the surface area of a sphere of radius r, and r is the distance between the earth and sun. For simplicity, we use r (~1.5 x [10.sup.11] m) as the average radius of earth's orbit; however, for increased accuracy r can be a function of time (ASCE 2005). Additionally, we have assumed here that the sun radiates power equally through all angles. Because the spectrum and irradiance are related through Eq. (2), Eq. (4) implies that the measured spectrum must also be reduced by the factor [(R/r).sup.2]. This leads to the model we use for finding T,

S[lambda] = 3[pi][hc.sup.2]/[[lambda].sup.5](exp [hc/[lambda]kT]-1)[(R/r).sup.2], (5)

which leaves us with one unknown, T, which will be found through regression. As a side note, we can calculate the photospheric temperature by solving Equation (4) for T,

[MATHEMATICAL EXPRESSION NOT REPRODUCIBLE IN ASCII], (6)

and by using a value for solar irradiance (Kopp and Lean 2011) of I = 1360.8 W x [m.sup.-2] in Eq. (6), where R = 6.96 x [10.sup.8] m, r = 1.5 x [10.sup.11] m and [sigma] = 5.67 x [10.sup.-8] W x [m.sup.-2] x [K.sup.-4], we obtain a temperature for the sun of 5778.22 K, which is the standard accepted value (Kopp and Lean 2011). Therefore, if one were to calculate a value for extraterrestrial irradiance based on a measured spectrum, one could then use Eq. (6) to calculate the photospheric temperature. However, for our approach, we will simply find the value of T in Eq. (5), which causes our model to fit the measured spectrum best.

PROCEDURE

Before the solar spectrum can be accurately measured, the spectrometer needs to be calibrated. Our calibration procedure utilized an Ocean Optics HL-2000-cal calibrated lamp. By measuring a known spectrum, corrections for calibration can be determined. This process was automated for us through the use of Ocean Optics' SpectraSuite software (Ocean Optics 2016) in combination with the calibrated lamp. Ocean Optics also provides a method for calibrating wavelength, which can be found in the operating manual along with the procedure for response calibration. While the automated process provided by SpectraSuite is convenient, it is also a limitation since all uncertainty within the process is unknown. Accuracy is wholly dependent on the calibrated lamp's condition. We do know that the calibrated lamp requires recalibration after 50 hours of use, so we can attribute some error to this process; how much though, is unknown. Although the calibration process was automated, we can investigate the response calibration by finding the .IrradCal file produced by SpectraSuite. The contents contain the data plotted in Figure 1, which reveals the nature of the corrections.

In order to capture the solar spectrum, two methods can be employed. The first, called direct normal solar irradiance (DNSI), requires limiting the field of view to 6 [degrees] centered on the sun, which can be accomplished with a simple tube (see Figure 2) and a bare fiber optic cable. The second method, called global horizontal irradiance (GHSI), requires a 180 [degrees] field of view centered on a zenith angle of 0 [degrees], which required an ocean optics cc-3 cosine corrector. We tested both methods and found no significant impact on the extracted temperature, however DNSI requires less expensive equipment.

The American Society for Testing and Materials (ASTM) publishes reference solar spectral irradiances (ASTM G173-03, 2012) which provide an excellent reference for students who wish to check that their measurements are reasonable (Figure 3). Note that the absolute spectral irradiance is strongly dependent on atmospheric conditions, time of day, and location, which we do not expect to duplicate perfectly; we intend for this experiment to be performed without regard to time of day or location, and with only regard for the presence of clouds. Therefore agreement is not perfect, and results only shows that it is within reasonable limits.

METHOD

We use MATLAB in our modeling of the data and we import the data file created by SpectraSuite. If the data has been saved into a Microsoft Excel file, it can be imported into MATLAB through the method xlsread(filename'). A function must be defined that accepts the two parameters, [lambda] and T, in order to perform the regression. This was accomplished with a line of the form [S.sub.[lambda]] = @(T, [lambda]) < expression >, which defines equation (5) above. Finally, a regression analysis is performed with the method nlinfit(). The method nlinfit() requires a predictor matrix ([lambda] values), response matrix ([S.sub.[lambda]] values), the function ([S.sub.[lambda]]), and an initial guess for the value of T as a starting point for the iterative regression. MATLAB uses the function ([S.sub.[lambda]]) defined above to get the response matrix. After obtaining a value for T from the regression analysis, a plot of the measured spectrum and the model function can be produced through the method plot(x,y). See Figure 4 for a plot of our results. A complete MATLAB script which imports the spectral data (a two column header-less excel spreadsheet), performs the regression, and produces a similar plot to Figure 4 is provided in the appendix.

RESULTS

We recorded 66 measurements between February and May, at multiple times of day between 10 a.m. and 5 p.m., and found no significant impact on accuracy of the extracted temperature with respect to time of day or calendar day (within 10%). Atmospheric conditions dominated the variability of our results, for which the only control was to perform the experiment on clear days. Two types of measurements were made in order to gauge their effect on our results, GHSI and DNSI. It was generally found that DNSI and GHSI produced similar results, with DNSI performing slightly worse. Figure 5 reveals results of the experiment.

The experiment was found to reliably determine photospheric temperature within 10% of the accepted value (5778 K), with an average (n = 66) temperature of 6212 K (s = 164 K, 7.5% average error), which we believe to be reasonable given that atmospheric effects are ignored, and that the sun is far more complex than a spherical blackbody radiator. For clarity, the standard deviation, s, was calculated through Equation 7,

s = [square root of [summation][(T-[bar.T]).sup.2]/(n-1), (7)

where n is the number of extracted temperatures.

Figure 4 gives a measured spectrum and the corresponding model. We are left to conclude that the low r-square value is a direct result of ignoring these effects; the best that can be done with this model is to have the approximate shape of the spectrum. Accuracy can certainly be improved by correcting for atmospheric effects--we believe this is the most limiting factor of the model, for which a simple solution eludes us. One cannot expect to reproduce the solar spectrum accurately with a simple blackbody curve; however, we have shown that is possible to extract a reasonably accurate temperature from the best fitting model.

We have presented here a simple technique for determining the sun's photospheric temperature, with fair accuracy, simplicity, and broad availability--ideal for the undergraduate physics classroom. This exercise will naturally lead to a discussion of the nature of the sun, absorption, scattering, and perhaps even composition determinations. We believe that by doing this exercise, students will have a solid understanding of how to use a spectrometer, how to work with data, and most importantly, they will develop skills in computational physics and gain experience with a programming environment.

ACKNOWLEDGEMENTS

We gratefully acknowledge partial funding through the UWise and SRAP programs at the University of West Georgia.

REFERENCES

ASTM G173-03(2012), Standard Tables for Reference Solar Spectral Irradiances: Direct Normal and Hemispherical on 37[degrees] Tilted Surface, ASTM International, West Conshohocken, PA, 2012, www.astm.org. doi:10.1520/G0173-03R12

Bell, J.A. 1968. TPT NOTES: The temperature of the sun: a demonstration experiment. The Physics Teacher, 6, 466-467. doi:10.1119/1.2351339

Biermann, M.L., D.M. Katz, R. Aho, J.D. Barriga, and J. Petron. 2002. Wien's Law and the temperature of the sun. The Physics Teacher, 40, 398-400. doi:10.1119/1.1517878

Goldberg, L. 1955. Infrared solar spectrum. Am. J. Phys., 23, 203-222.doi:10.1119/ 1.1933953

Lee, W., H.L. Gilley, and J.B. Caris. 1997. Finding the surface temperature of the sun using a parked car. Am. J. Phys., 65(11), 1105-1109. doi:10.1119/1.18729

Kopp, G. and J.L. Lean. 2011. A new, lower value of total solar irradiance: Evidence and climate significance. Geophysical Research Letters, 38, L01706. doi:10.1029/ 2010GL045777

Marr, J.M. and F.P. Wilkin. 2012. A better presentation of Planck's radiation law. Am. J. Phys., 80(5), 399-405. doi:10.1119/1.3696974

Maslov, V.P. (2008). Quasithermodynamics and a correction to the Stefan-Boltzmann law. Mathematical Notes, 83(1), 72-79.

Matlab 30-Day Free Trial. 2016. MathWorks. https://www.mathworks.com/campaigns/ products/ppc/google/matlab-trial-request.html?s_eid=ppc_5852767762&q= %2Bmatlab%20download

Perry, S.K. 1979. Measuring the sun's temperature. The Physics Teacher, 17, 531-533. doi:10.1119/1.2340350

Soffer, B.H. and D.K. Lynch. 1999. Some paradoxes, errors, and resolutions concerning the spectral optimization of human vision. Am. J. Phys., 67(11), 946-953. doi:10.1119/1.13742

SpectraSuite Software download. 2016. Ocean Optics. http://oceanoptics.com/support/ software-downloads/

Planck, M. 2013. The theory of heat radiation. Courier Corporation.

Ratcliff, S.J., D.K. Noss, J.S. Dunham, E.B. Anthony, J.H. Cooley, and A. Alvarez. 1992. High resolution solar spectroscopy in the undergraduate physics laboratory. Am. J. Phys., 60(7), 645-649. doi:10.1119/1.17119

The ASCE standardized reference evapotranspiration equation. 2005. Task Committee on Standardization of Reference Evapotranspiration. Environmental and Water Resources Institute of the American Society of Civil Engineers. http://www.kimberly.uidaho.edu/water/asceewri/ascestzdetmain2005.pdf

Zanetti, V. 1984. Sun and lamps. Am. J. Phys., 52(12), 1127-1130.

APPENDIX Example script for MATLAB @Author: Austin Kerlin, Ajith DeSilva, L. Shea Rose, Javier E. Hasbun University of West Georgia Fall 2015 clc; clearing workspace close all; clear all; Importing Data & setting constants c = 2.998e8; speed of light h = 6.62606957e-34; Planck's constant k = 1.3806488e-23; Boltzmann's constant s = 5.67e-8; Stefan-Boltzmann constant r= 1.5e11; average radius of earth's orbit Rs = 6.96e8; approximate radius of photosphere data = xlsread('SS_5_6_GHI2.xls'); imports data from excel file xdata = data(:,1)./1e9; nm converted to m ydata = data(:,2).*1e9./ 1e6.*100.*100; uw/cm^2/nm converted to W/m^3 Sfunction = @(x,xdata) (Rs/r).^2.*c^2.*h.*pi./ ... (xdata.^5.*(exp(x(1).*h*c./(xdata.*k))-1)); Spectral density function declared initialguess = 1/6000; initial guess for 1/T fit1 = nlinfit(xdata,ydata,Sfunction,initialguess); performs regression SSE = sum((ydata - Sfunction(fit1,xdata)).^2); SST = sum((ydata - mean(ydata))^2); R2 = 1-SSE/SST; calculates r^2 statistic T=i/fiti; calculate T from fit err = (T-5778)/5778*100; calculate error w.r.t. 5778 K figure('Position',[100,50,1200,600]) creates figure window hold on allows multiple plots in current figure plot(xdata.*1e9,Sfunction(fit1(1),xdata)./1e9,'k-','LineWidth',3) plots model, xdata converted to nm, ydata converted to Wm^-2nm^-1 plot(xdata.*1e9,ydata./1e9,'kd','MarkerSize',3,'MarkerFaceColor','k') plots measured spectrum, xdata converted to nm, ydata converted to Wm^-2nm^-1 below adds legend, axis labels and some text. legend('Model','Data') xlabel('Wavelength (nm)','Interpreter','latex','Fontsize',16) ylabel('Spectral Irradiance ($W/m^2/nm$)','Interpreter','latex', ... 'Fontsize',16) text(950,1.1,['$T_{fit}$ = ', num2str(T,'%4.0f'),'K'],'Interpreter', ... 'latex','Fontsize',i6) text(950,1.03,['$T_{acc}$ = 5778 K'],'Interpreter','latex','Fontsize', 16) text(950,0.96,['$Error$ = ',num2str(err,'%2.if),'\%'],'Interpreter', ... 'latex','Fontsize',16) text(700,1.3,['$Model:$ $S_{\lambda}=\left(\frac{R}{r}\right)A2\' ... 'frac{2\pi h c^2}{\lambda^5(e^{\frac{hc}{\lambda k T}}-i)}$'], ... 'Interpreter','latex','Fontsize',16) text(950,.89,['$r^2$ = ',num2str(R2,'%1.3f)],'Interpreter','latex', ... 'Fontsize',16) End Program

Austin B. Kerlin

University of West Georgia, akerlin2@gmail.com

L Ajith DeSilva

University of West Georgia, ldesilva@westga.edu

Shea Rose

University of West Georgia, srose@westga.edu

Javier E. Hasbun

University of West Georgia, jhasbun@westga.edu

Austin B. Kerlin ([dagger]), L. Ajith DeSilva ([dagger]), Shea Rose ([double dagger]), and Javier E. Hasbun ([dagger]) * Departments of ([dagger]) Physics and ([double dagger]) Geosciences University of West Georgia Carrollton, Georgia, 30118

* Corresponding author E-mail: jhasbun@westga.edu

----------

Please note: Some tables or figures were omitted from this article.

Printer friendly Cite/link Email Feedback | |

Author: | Kerlin, Austin B.; DeSilva, L. Ajith; Rose, Shea; Hasbun, Javier E. |
---|---|

Publication: | Georgia Journal of Science |

Article Type: | Report |

Date: | Jun 22, 2016 |

Words: | 2926 |

Previous Article: | The Millikan oil drop experiment: a simulation suitable for classroom use. |

Next Article: | Variability of Mars' seasonal north polar cap. |

Topics: |