Skip to content

Commit a4da19f

Browse files
update cell tags
1 parent 8b4fb83 commit a4da19f

File tree

1 file changed

+61
-31
lines changed

1 file changed

+61
-31
lines changed

docs/source/solarposition_introduction.ipynb

Lines changed: 61 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@
5454
{
5555
"cell_type": "markdown",
5656
"id": "59a4b422-c707-435a-be86-23c417f24fd5",
57-
"metadata": {},
57+
"metadata": {
58+
"editable": true,
59+
"slideshow": {
60+
"slide_type": ""
61+
},
62+
"tags": []
63+
},
5864
"source": [
5965
"\n",
6066
"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,7 +78,15 @@
7278
"cell_type": "code",
7379
"execution_count": 1,
7480
"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+
},
7690
"outputs": [
7791
{
7892
"data": {
@@ -134,9 +148,17 @@
134148
},
135149
{
136150
"cell_type": "code",
137-
"execution_count": 37,
151+
"execution_count": 42,
138152
"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+
},
140162
"outputs": [],
141163
"source": [
142164
"import solposx\n",
@@ -152,9 +174,17 @@
152174
},
153175
{
154176
"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+
},
158188
"outputs": [
159189
{
160190
"data": {
@@ -168,7 +198,7 @@
168198
}
169199
],
170200
"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",
172202
"\n",
173203
"axes[0].plot(michalsky['elevation']-skyfield['elevation'])\n",
174204
"axes[1].plot(michalsky['azimuth']-skyfield['azimuth'])\n",
@@ -190,44 +220,44 @@
190220
},
191221
{
192222
"cell_type": "code",
193-
"execution_count": 39,
223+
"execution_count": 46,
194224
"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+
},
214234
"outputs": [
215235
{
216236
"name": "stdout",
217237
"output_type": "stream",
218238
"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"
220242
]
221243
}
222244
],
223245
"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')"
225249
]
226250
},
227251
{
228252
"cell_type": "markdown",
229253
"id": "f253f90e-e125-4af8-bb31-76a824b46fa6",
230-
"metadata": {},
254+
"metadata": {
255+
"editable": true,
256+
"slideshow": {
257+
"slide_type": ""
258+
},
259+
"tags": []
260+
},
231261
"source": [
232262
"#### References\n",
233263
"\n",

0 commit comments

Comments
 (0)