You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"## Contour storage\nAll contours are stored on the same number of points, and are resampled if needed with an algorithm to be stored as objects\n\n"
109
109
]
110
110
},
111
+
{
112
+
"cell_type": "markdown",
113
+
"metadata": {},
114
+
"source": [
115
+
"## Speed profile storage\nSpeed profile is an interpolation of speed mean along each contour.\nFor each contour included in eddy, we compute mean of speed along the contour,\nand after we interpolate speed mean array on a fixed size array.\n\nSeveral field are available to understand \"uavg_profile\" :\n 0. - num_contours : Number of contour in eddies, must be equal to amplitude divide by isoline step\n 1. - height_inner_contour : height of inner contour used\n 2. - height_max_speed_contour : height of max speed contour used\n 3. - height_external_contour : height of outter contour used\n\nLast value of \"uavg_profile\" is for inner contour and first value for outter contour.\n\n"
116
+
]
117
+
},
118
+
{
119
+
"cell_type": "code",
120
+
"execution_count": null,
121
+
"metadata": {
122
+
"collapsed": false
123
+
},
124
+
"outputs": [],
125
+
"source": [
126
+
"# Observations selection of \"uavg_profile\" with high number of contour(Eddy with high amplitude)\ne = eddies_collections.extract_with_mask(eddies_collections.num_contours > 15)"
127
+
]
128
+
},
129
+
{
130
+
"cell_type": "code",
131
+
"execution_count": null,
132
+
"metadata": {
133
+
"collapsed": false
134
+
},
135
+
"outputs": [],
136
+
"source": [
137
+
"# Raw display of profiles with more than 15 contours\nax = plt.subplot(111)\n_ = ax.plot(e.uavg_profile.T, lw=0.5)"
138
+
]
139
+
},
140
+
{
141
+
"cell_type": "code",
142
+
"execution_count": null,
143
+
"metadata": {
144
+
"collapsed": false
145
+
},
146
+
"outputs": [],
147
+
"source": [
148
+
"# Profile from inner to outter\nax = plt.subplot(111)\nax.plot(e.uavg_profile[:, ::-1].T, lw=0.5)\n_ = ax.set_xlabel(\"From inner to outter contour\"), ax.set_ylabel(\"Speed (m/s)\")"
149
+
]
150
+
},
151
+
{
152
+
"cell_type": "code",
153
+
"execution_count": null,
154
+
"metadata": {
155
+
"collapsed": false
156
+
},
157
+
"outputs": [],
158
+
"source": [
159
+
"# If we normalize indice of contour to set speed contour to 1 and inner contour to 0\nax = plt.subplot(111)\nh_in = e.height_inner_contour\nh_s = e.height_max_speed_contour\nh_e = e.height_external_contour\nr = (h_e - h_in) / (h_s - h_in)\nnb_pt = e.uavg_profile.shape[1]\n# Create an x array for each profile\nx = outer(arange(nb_pt) / nb_pt, r)\n\nax.plot(x, e.uavg_profile[:, ::-1].T, lw=0.5)\n_ = ax.set_xlabel(\"From inner to outter contour\"), ax.set_ylabel(\"Speed (m/s)\")"
0 commit comments