|
17 | 17 | You should have received a copy of the GNU General Public License |
18 | 18 | along with py-eddy-tracker. If not, see <http://www.gnu.org/licenses/>. |
19 | 19 |
|
20 | | -Copyright (c) 2014-2015 by Evan Mason |
| 20 | +Copyright (c) 2014-2017 by Evan Mason and Antoine Delepoulle |
21 | 21 | |
22 | 22 | =========================================================================== |
23 | 23 |
|
24 | | -py_eddy_tracker_classes.py |
| 24 | +property_functions.py |
25 | 25 |
|
26 | | -Version 2.0.3 |
| 26 | +Version 3.0.0 |
27 | 27 | =========================================================================== |
28 | 28 |
|
29 | 29 |
|
@@ -206,7 +206,7 @@ def get_uavg(eddy, contours, centlon_e, centlat_e, poly_eff, grd, |
206 | 206 | poly_eff.vertices[:, 1].copy()) |
207 | 207 |
|
208 | 208 | theseglon, theseglat = uniform_resample( |
209 | | - theseglon, theseglat, method='akima') |
| 209 | + theseglon, theseglat, method='interp1d') |
210 | 210 |
|
211 | 211 | if 'RectBivariate' in eddy.interp_method: |
212 | 212 | uavg = eddy.uspd_coeffs.ev(theseglat[1:], theseglon[1:]).mean() |
@@ -261,7 +261,7 @@ def get_uavg(eddy, contours, centlon_e, centlat_e, poly_eff, grd, |
261 | 261 | continue |
262 | 262 | any_inner_contours = True |
263 | 263 |
|
264 | | - seglon, seglat = (poly_i.vertices[:, 0], poly_i.vertices[:, 1]) |
| 264 | + seglon, seglat = (poly_i.vertices[:, 0].copy(), poly_i.vertices[:, 1].copy()) |
265 | 265 | seglon, seglat = uniform_resample(seglon, seglat, method='interp1d') |
266 | 266 |
|
267 | 267 | # Interpolate uspd to seglon, seglat, then get mean |
|
0 commit comments