Abstract
This paper presents new approximation formulas for the determination of the equation of time and declination angle. The proposed approach is based on the cubic spline interpolation techniques defined for sixteen or twenty chosen knots over the whole year. The results obtained by the proposed formulas for both equation of time and declination angle show marked improvements in terms of speed and sum of squared errors and maximum absolute error over the whole year in comparison with other five existing methods for analytical evaluation of equation of time and two existing methods for analytical evaluation of declination angle.
1. Introduction
The quantity of solar radiation reaching any particular part of the earthβs surface is determined by the position of the point, time of year, atmospheric diffusion, cloud cover, shape of the surface, and reflectivity of the surface [1]. At any given time, the position of the sun relative to the plane of celestial equator describes the declination angle (DA) [2].
Different time systems are in use. Legal clock time differs from solar time. Solar time is determined from the movements of the sun. This time system is usually called local apparent time (LAT). Local mean time (LMT), often called clock time or civil time, differs from the LAT. The conversion of time systems requires knowledge both of the longitude of the site and the reference longitude of the time system being used. The conversion also requires the application of the equation of time (EOT), which accounts for certain perturbations in the rotation of the earth about its polar axis [3].
In the present work two new interpolating formulas are suggested for the determination of the EOT and the DA which are based on cubic spline functions. This form of interpolating technique has been successfully implemented for variety of engineering applications where fast and reliable evaluations of some mathematical functions are the main objectives [4β6].
2. Existing Formulas
2.1. Equation of Time (EOT)
The first expression for the EOT in minutes reported in [7] is given in terms of sine function defined over three different sections of the year as follows:
is the day number of the year (e.g., on January 1 and on February 2).
The second expression for the EOT in minutes reported in [8] is based on five terms of the Fourier expansion and is given by where is the day angle in radian () and is the day number.
The third expression for the EOT reported in [9] is given by where degrees, and is the day number.
The fourth expression for the EOT reported in [10] is given by where is the day number of the year (e.g., on January 1 and on February 2).
The fifth and final expression for the EOT reported in [11] is given by where degrees and is the day number.
2.2. Declination Angle (DA)
The first expression for the DA in degrees reported in [2] is given in terms of the following sine function approximation formula: where is the day number of the year (e.g., on January 1 and on February 2).
The second expression considered for the DA in degrees reported in [8] is based on the following seven-term-Fourier expansion: where is the day angle in radian, () and is the day number.
3. New Approach
Polynomial approximation is most often recommended for function evaluation as any continuous function can be approximated in this way, and the implementation only consists of additions, multiplications, and powers [12]. This paper introduces a new approach for the fast and reliable determination of the EOT and DA based on cubic spline polynomial interpolation functions. Instead of approximating a given function over an interval by a single polynomial, one may divide into subintervals and approximate by different polynomials on each subinterval. For example, we may recall that the repeated midpoint, trapezoidal, and parabolic rules for approximate integration result from the process of replacing the integrand by piecewise polynomial approximations of degrees 0, 1, and 2, respectively, with subintervals of uniform length. In the first case the approximation (a step function) generally is discontinuous at each division point ; in the other two cases this statement applies instead to the derivative.
For some purposes, particularly for numerical differentiation, it is highly desirable that the joins of the separate arcs be as smooth as possible. Specifically, if it is required that in each subinterval the approximation be a polynomial of maximum degree 3; that is, agrees with at each of the points (, , ) and that the first and second derivatives and be continuous on ; then, is called a cubic spline [13β15]. Assume that the values of the EOT and DA at days , where is 1 and is 366, are given to be , respectively. Then the cubic spline functions are defined as set of third-degree polynomials that goes through each of the data points (knots) and has continuous first- and second-order derivatives. Consider the subinterval , and let
Then the cubic spline function on this interval may be given by where (),
In this form is taken as linear extrapolation from and and as linear extrapolation from and , respectively [14].
These spline coefficients (, ) are then determined numerically by implementing a MATLAB program based on Gaussian elimination without scaling or pivoting [15].
4. Results and Discussion
The spline coefficients of (9) for the EOT and DA were determined by implementing a MATLAB program. Tables 1 and 2 show the 16 and 20 knots taken in calculating the spline coefficients, respectively. These knots were selected from the full tabular values of EOT and DA given in [16, 17].
A comparative study was performed for the five expressions for EOT considered in (1) to (5) with the proposed spline formula of (9), respectively. A similar comparative study was also performed for DA for the two expressions of DA considered in equation (6), equation (7) with the proposed spline formula of (9), respectively.
MATLAB programs were implemented to evaluate the Sum of Squared Errors (SSE), Maximum Absolute Error (MAE) and Average Absolute Error (AAE) calculated over the whole year for all the cases considered above with respect to the data given in [16, 17] which represents the reference values of the equation of time and declination angle. Further details for these expressions are given in the appendix. The results are shown in Tables 3 and 4 for the EOT and DA, respectively. A graphical representation of the errors over the whole year with reference to the tabulated data of [16, 17] for the six expressions of the EOT, and the three expressions of the DA are displayed in Figures 1 and 2, respectively.
It can be seen from the results in Tables 3 and 4 and also from the graphs of Figures 1 and 2 that the use of the cubic spline functions reported in this paper offers the best results in terms of sum of the squared errors and maximum errors. Hence, it can be concluded that the use of cubic spline functions promises to be very useful mathematical tools in applications where speed and accuracy are of the prime objectives.
Many new high-performance field programmable gate array (FPGA) technologies provide built-in multifunction modules that have general applicability to a wide range of applications [18]. The fast and reliable determination of the EOT and the DA plays an important role in various fields of solar energy. It follows that the approach proposed in this paper may play an important role in the FPGA based applications used for the fast and accurate calculations of the position of the sun over the year [19].
5. Conclusion
The use of cubic spline approximation method has been developed for solar tracking applications as well as those concerned with classical navigation. The main benefits of using the cubic spline functions are the following (i) it is a relatively smooth curve, (ii) it never overshoots intermediate values, and (iii) interpolated values can be calculated directly without solving a system of equations. Cubic spline interpolation is a powerful data analysis tool. Splines correlate data efficiently and effectively no matter how random the data may seem.
For systems requiring little data-processing capability such as microcontrollers and low-range microprocessors the spline approach can be the best choice. If the computation needs are greater, more powerful microprocessors, or even digital signal processors (DSPs), should be considered. This type of solution (microprocessors and DSPs) is very flexible as the development work mainly consists in generating programs. Which number of knots are to be chosen in the determination of the equation of time and declination angle remains to be a tradeoff between the computation speed and the acceptable error level.
For getting higher performances, it may be necessary to develop specific algorithm. A first option is to use a programmable device, for example, a FPGA.
Appendix
The SSE over the 365 days of the year is defined as where is the value of EOT or DA obtained at true noon at the th day of the year and is the value of EOT or DA obtained from the proposed spline function at the th day of the year.
The MAE over 365 day is defined as the largest absolute error over the whole year: The AAE given by
Acknowledgment
The first author, F. Al-Naima, wishes to acknowledge the financial support of the IIEβs Iraq Scholar Rescue Project.