|
54 | 54 | { |
55 | 55 | "cell_type": "markdown", |
56 | 56 | "id": "59a4b422-c707-435a-be86-23c417f24fd5", |
57 | | - "metadata": {}, |
| 57 | + "metadata": { |
| 58 | + "editable": true, |
| 59 | + "slideshow": { |
| 60 | + "slide_type": "" |
| 61 | + }, |
| 62 | + "tags": [] |
| 63 | + }, |
58 | 64 | "source": [ |
59 | 65 | "\n", |
60 | 66 | "Solar position algorithms (SPAs) are mathematical models used to accurately calculate the position of the sun in the sky at any given time and location on Earth. These algorithms provide key solar angles such as solar zenith, solar elevation, and azimuth, which are crucial for applications in solar energy systems, climate modeling, architecture, and astronomy. The solar position calculations, using these algorithms, are based on predicting the Earth's irregular rotation around the Sun using historical observations. This has caused users to develop different algorithms with different sets of coefficients that are accurate for a specific number of years.\n", |
|
72 | 78 | "cell_type": "code", |
73 | 79 | "execution_count": 1, |
74 | 80 | "id": "765bf075-4bf2-4004-9c91-06e69ad6cf66", |
75 | | - "metadata": {}, |
| 81 | + "metadata": { |
| 82 | + "editable": true, |
| 83 | + "slideshow": { |
| 84 | + "slide_type": "" |
| 85 | + }, |
| 86 | + "tags": [ |
| 87 | + "hide-input" |
| 88 | + ] |
| 89 | + }, |
76 | 90 | "outputs": [ |
77 | 91 | { |
78 | 92 | "data": { |
|
134 | 148 | }, |
135 | 149 | { |
136 | 150 | "cell_type": "code", |
137 | | - "execution_count": 37, |
| 151 | + "execution_count": 42, |
138 | 152 | "id": "6afd9661-e13f-49e0-ad18-e56e339e2330", |
139 | | - "metadata": {}, |
| 153 | + "metadata": { |
| 154 | + "editable": true, |
| 155 | + "slideshow": { |
| 156 | + "slide_type": "" |
| 157 | + }, |
| 158 | + "tags": [ |
| 159 | + "hide-output" |
| 160 | + ] |
| 161 | + }, |
140 | 162 | "outputs": [], |
141 | 163 | "source": [ |
142 | 164 | "import solposx\n", |
|
152 | 174 | }, |
153 | 175 | { |
154 | 176 | "cell_type": "code", |
155 | | - "execution_count": 38, |
156 | | - "id": "2044dab4-408a-4735-ba03-00908e789baf", |
157 | | - "metadata": {}, |
| 177 | + "execution_count": null, |
| 178 | + "id": "26c81482-a43c-4833-840f-01ab3b184f1a", |
| 179 | + "metadata": { |
| 180 | + "editable": true, |
| 181 | + "slideshow": { |
| 182 | + "slide_type": "" |
| 183 | + }, |
| 184 | + "tags": [ |
| 185 | + "hide-input" |
| 186 | + ] |
| 187 | + }, |
158 | 188 | "outputs": [ |
159 | 189 | { |
160 | 190 | "data": { |
|
168 | 198 | } |
169 | 199 | ], |
170 | 200 | "source": [ |
171 | | - "fig, axes = plt.subplots(1,2, figsize=(10, 4.5), facecolor='w', edgecolor='k')\n", |
| 201 | + "fig, axes = plt.subplots(1, 2, figsize=(10, 4.5), facecolor='w', edgecolor='k')\n", |
172 | 202 | "\n", |
173 | 203 | "axes[0].plot(michalsky['elevation']-skyfield['elevation'])\n", |
174 | 204 | "axes[1].plot(michalsky['azimuth']-skyfield['azimuth'])\n", |
|
190 | 220 | }, |
191 | 221 | { |
192 | 222 | "cell_type": "code", |
193 | | - "execution_count": 39, |
| 223 | + "execution_count": 46, |
194 | 224 | "id": "788b0cd9-42cb-4181-ad31-c517b8d72b9a", |
195 | | - "metadata": {}, |
196 | | - "outputs": [ |
197 | | - { |
198 | | - "name": "stdout", |
199 | | - "output_type": "stream", |
200 | | - "text": [ |
201 | | - "The RMSD of the Michalsky model to Skyfield for elevation angle is: 0.0043 degrees\n" |
202 | | - ] |
203 | | - } |
204 | | - ], |
205 | | - "source": [ |
206 | | - "print(f'The RMSD of the Michalsky model to Skyfield for elevation angle is: {comparison['zenith_rmsd'].round(4)} degrees')" |
207 | | - ] |
208 | | - }, |
209 | | - { |
210 | | - "cell_type": "code", |
211 | | - "execution_count": 40, |
212 | | - "id": "2963c1de-71f4-4c0a-947a-dd6f55d6b3d5", |
213 | | - "metadata": {}, |
| 225 | + "metadata": { |
| 226 | + "editable": true, |
| 227 | + "slideshow": { |
| 228 | + "slide_type": "" |
| 229 | + }, |
| 230 | + "tags": [ |
| 231 | + "hide-input" |
| 232 | + ] |
| 233 | + }, |
214 | 234 | "outputs": [ |
215 | 235 | { |
216 | 236 | "name": "stdout", |
217 | 237 | "output_type": "stream", |
218 | 238 | "text": [ |
219 | | - "The RMSD of the Michalsky model to Skyfield for azimuth angle is: 0.0048 degrees\n" |
| 239 | + "The RMSD of the Michalsky model to Skyfield for elevation angle is: 0.0043 degrees\n", |
| 240 | + "The RMSD of the Michalsky model to Skyfield for azimuth angle is: 0.0048 degrees\n", |
| 241 | + "The RMSD of the Michalsky model to Skyfield for combined vector angle is: 0.0049 degrees\n" |
220 | 242 | ] |
221 | 243 | } |
222 | 244 | ], |
223 | 245 | "source": [ |
224 | | - "print(f'The RMSD of the Michalsky model to Skyfield for azimuth angle is: {comparison['azimuth_rmsd'].round(4)} degrees')" |
| 246 | + "print(f'The RMSD of the Michalsky model to Skyfield for elevation angle is: {comparison['zenith_rmsd'].round(4)} degrees')\n", |
| 247 | + "print(f'The RMSD of the Michalsky model to Skyfield for azimuth angle is: {comparison['azimuth_rmsd'].round(4)} degrees')\n", |
| 248 | + "print(f'The RMSD of the Michalsky model to Skyfield for combined vector angle is: {comparison['combined_rmsd'].round(4)} degrees')" |
225 | 249 | ] |
226 | 250 | }, |
227 | 251 | { |
228 | 252 | "cell_type": "markdown", |
229 | 253 | "id": "f253f90e-e125-4af8-bb31-76a824b46fa6", |
230 | | - "metadata": {}, |
| 254 | + "metadata": { |
| 255 | + "editable": true, |
| 256 | + "slideshow": { |
| 257 | + "slide_type": "" |
| 258 | + }, |
| 259 | + "tags": [] |
| 260 | + }, |
231 | 261 | "source": [ |
232 | 262 | "#### References\n", |
233 | 263 | "\n", |
|
0 commit comments