Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agatheS
mooc-rr
Commits
ee1c7e78
Commit
ee1c7e78
authored
Apr 10, 2020
by
agatheS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ajout amplitude des oscillation saisonnieres
parent
7f837232
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
10 deletions
+32
-10
exercice.ipynb
module3/exo3/exercice.ipynb
+32
-10
No files found.
module3/exo3/exercice.ipynb
View file @
ee1c7e78
...
...
@@ -2571,7 +2571,7 @@
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
a3a6587f9
8>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
665172c7b
8>"
]
},
"execution_count": 11,
...
...
@@ -2625,7 +2625,7 @@
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
a3a62c09e
8>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
665146a4a
8>"
]
},
"execution_count": 12,
...
...
@@ -2669,7 +2669,7 @@
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
a3a636dc88
>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
66515226a0
>"
]
},
"execution_count": 13,
...
...
@@ -2730,7 +2730,7 @@
{
"data": {
"text/plain": [
"[<matplotlib.lines.Line2D at 0x7f
a3a86362b
0>]"
"[<matplotlib.lines.Line2D at 0x7f
66537e0e1
0>]"
]
},
"execution_count": 14,
...
...
@@ -2861,13 +2861,15 @@
"output_type": "stream",
"text": [
" \n",
"-2.952e-05 x - 2.344\n"
"-2.952e-05 x - 2.344\n",
"l'oscillation saisonnière est de 5.76 ppm en 1958\n",
"l'oscillation saisonnière est de 7.05 ppm en 2019\n"
]
},
{
"data": {
"text/plain": [
"[<matplotlib.lines.Line2D at 0x7f
a3a63138d0
>]"
"[<matplotlib.lines.Line2D at 0x7f
664c3ebac8
>]"
]
},
"execution_count": 18,
...
...
@@ -2900,9 +2902,29 @@
"poly_min = np.poly1d(np.polyfit(x_env_min, y_env_min, 1))\n",
"print(poly_min)\n",
"\n",
"\n",
"\n",
"amp1=y_env[0]-y_env_min[0]\n",
"x1=pd.Timestamp(year=1900,month=1,day=1)+pd.Timedelta(days=x_env[0])\n",
"y1=x1.year\n",
"print('l\\'oscillation saisonnière est de %.2f ppm en %i' %(amp1,y1))\n",
"amp2=y_env[-1]-y_env_min[-1]\n",
"x2=pd.Timestamp(year=1900,month=1,day=1)+pd.Timedelta(days=x_env[-1])\n",
"y2=x2.year\n",
"print('l\\'oscillation saisonnière est de %.2f ppm en %i' %(amp2,y2))\n",
"\n",
"plt.plot(x, poly_min(x), c='r')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**Caractérisation de l'oscillation périodique**\n",
"\n",
"L'oscillation saisonnière est périodique avec une période d'environ un an et une variation comprise entre 5.76 ppm en 1958 et 7.05 ppm en 2019"
]
},
{
"cell_type": "markdown",
"metadata": {},
...
...
@@ -2918,7 +2940,7 @@
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
a3a0a46780
>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
664c414828
>"
]
},
"execution_count": 19,
...
...
@@ -2965,7 +2987,7 @@
{
"data": {
"text/plain": [
"[<matplotlib.lines.Line2D at 0x7f
a3a09e0cc0
>]"
"[<matplotlib.lines.Line2D at 0x7f
66516b55f8
>]"
]
},
"execution_count": 20,
...
...
@@ -3093,7 +3115,7 @@
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
a3a08c41d
0>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
664c2bf78
0>"
]
},
"execution_count": 24,
...
...
@@ -3125,7 +3147,7 @@
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
a3a08b0940
>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
664c24d438
>"
]
},
"execution_count": 25,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment