Skip to content

Commit

Permalink
Update Notebook to new namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
pradal committed Jan 20, 2025
1 parent 056b86b commit 9e6b87d
Show file tree
Hide file tree
Showing 2 changed files with 8,935 additions and 35 deletions.
38 changes: 19 additions & 19 deletions example/notebooks/Sky irradiance.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
},
"outputs": [],
"source": [
"from alinea.astk.data_access import montpellier_spring_2013\n",
"from alinea.astk.meteorology.sky_irradiance import sky_irradiance"
"from openalea.astk.data_access import montpellier_spring_2013\n",
"from openalea.astk.meteorology.sky_irradiance import sky_irradiance"
]
},
{
Expand Down Expand Up @@ -78,7 +78,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -267,8 +267,8 @@
"</div>"
],
"text/plain": [
" sun_azimuth sun_zenith sun_elevation ghi \n",
"2000-06-21 07:00:00+02:00 65.222522 81.781574 8.218426 69.608228 \\\n",
" sun_azimuth sun_zenith sun_elevation ghi \\\n",
"2000-06-21 07:00:00+02:00 65.222522 81.781574 8.218426 69.608228 \n",
"2000-06-21 08:00:00+02:00 74.723897 71.647009 18.352991 241.741681 \n",
"2000-06-21 09:00:00+02:00 84.230207 61.003100 28.996900 428.277428 \n",
"2000-06-21 10:00:00+02:00 94.525066 50.169169 39.830831 603.268306 \n",
Expand Down Expand Up @@ -302,7 +302,7 @@
"2000-06-21 21:00:00+02:00 0.000000 15.621544 41.965131 "
]
},
"execution_count": 5,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -321,7 +321,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -510,8 +510,8 @@
"</div>"
],
"text/plain": [
" sun_azimuth sun_zenith sun_elevation ghi \n",
"2000-06-21 07:00:00+02:00 65.222522 81.781574 8.218426 13.921646 \\\n",
" sun_azimuth sun_zenith sun_elevation ghi \\\n",
"2000-06-21 07:00:00+02:00 65.222522 81.781574 8.218426 13.921646 \n",
"2000-06-21 08:00:00+02:00 74.723897 71.647009 18.352991 48.348336 \n",
"2000-06-21 09:00:00+02:00 84.230207 61.003100 28.996900 85.655486 \n",
"2000-06-21 10:00:00+02:00 94.525066 50.169169 39.830831 120.653661 \n",
Expand Down Expand Up @@ -545,7 +545,7 @@
"2000-06-21 21:00:00+02:00 0.000000 3.124309 9.353447 "
]
},
"execution_count": 6,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -578,7 +578,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 5,
"metadata": {
"scrolled": true
},
Expand All @@ -589,7 +589,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 6,
"metadata": {
"scrolled": true
},
Expand Down Expand Up @@ -625,22 +625,22 @@
"Name: ghi, dtype: float64"
]
},
"execution_count": 13,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import pandas\n",
"when = pandas.date_range(start='2013-05-26', freq='H', periods=25,\n",
"when = pandas.date_range(start='2013-05-26', freq='h', periods=25,\n",
" tz='Europe/Paris')\n",
"observed = meteo_db.loc[when,'ghi']\n",
"observed"
]
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -829,8 +829,8 @@
"</div>"
],
"text/plain": [
" sun_azimuth sun_zenith sun_elevation ghi \n",
"2013-05-26 07:00:00+02:00 67.394678 82.902288 7.097712 166.370370 \\\n",
" sun_azimuth sun_zenith sun_elevation ghi \\\n",
"2013-05-26 07:00:00+02:00 67.394678 82.902288 7.097712 166.370370 \n",
"2013-05-26 08:00:00+02:00 76.998278 72.595513 17.404487 335.425926 \n",
"2013-05-26 09:00:00+02:00 86.670875 61.831377 28.168623 505.481481 \n",
"2013-05-26 10:00:00+02:00 97.240796 50.953097 39.046903 660.689655 \n",
Expand Down Expand Up @@ -864,7 +864,7 @@
"2013-05-26 21:00:00+02:00 0.000000 1.433333 4.500906 "
]
},
"execution_count": 15,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -898,7 +898,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.10.13"
}
},
"nbformat": 4,
Expand Down
8,932 changes: 8,916 additions & 16 deletions example/notebooks/Sky luminance.ipynb

Large diffs are not rendered by default.

0 comments on commit 9e6b87d

Please sign in to comment.