Skip to content

Commit f66a677

Browse files
committed
Var 'lon' changed to a list
1 parent d9e5fc7 commit f66a677

File tree

3 files changed

+247
-230
lines changed

3 files changed

+247
-230
lines changed

make_eddy_track_AVISO.py

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,11 @@ def pcol_2dxy(self, x, y):
907907
#lonmax = 51.
908908
#latmin = -47.
909909
#latmax = -24.
910+
911+
#lonmin = -32. # small test
912+
#lonmax = -25.
913+
#latmin = 20.
914+
#latmax = 28.
910915

911916

912917
elif the_domain in 'MedSea':
@@ -1182,7 +1187,7 @@ def pcol_2dxy(self, x, y):
11821187

11831188
#rec_start_time = time.time()
11841189
print '--- AVISO_file:', AVISO_file
1185-
1190+
11861191
# Holding variables
11871192
A_eddy.reset_holding_variables()
11881193
C_eddy.reset_holding_variables()
@@ -1228,8 +1233,6 @@ def pcol_2dxy(self, x, y):
12281233

12291234
# Remove padded boundary
12301235
sla = sla[sla_grd.jup0:sla_grd.jup1, sla_grd.iup0:sla_grd.iup1]
1231-
#u = sla_grd.u[sla_grd.jup0:sla_grd.jup1, sla_grd.iup0:sla_grd.iup1]
1232-
#v = sla_grd.v[sla_grd.jup0:sla_grd.jup1, sla_grd.iup0:sla_grd.iup1]
12331236

12341237
# Calculate EKE
12351238
sla_grd.getEKE()
@@ -1240,14 +1243,8 @@ def pcol_2dxy(self, x, y):
12401243
okubo, xi = okubo_weiss(sla_grd)
12411244

12421245
qparam = np.ma.multiply(-0.25, okubo) # see Kurian etal 2011
1243-
1244-
#u = u[sla_grd.jup0:sla_grd.jup1, sla_grd.iup0:sla_grd.iup1]
1245-
#v = v[sla_grd.jup0:sla_grd.jup1, sla_grd.iup0:sla_grd.iup1]
1246-
#u = u2rho_2d(u)
1247-
#v = v2rho_2d(v)
12481246

12491247
qparam = func_hann2d_fast(qparam, hanning_passes)
1250-
#xi = func_hann2d_fast(xi, hanning_passes)
12511248

12521249
# Set Q over land to zero
12531250
qparam *= sla_grd.mask[sla_grd.jup0:sla_grd.jup1, sla_grd.iup0:sla_grd.iup1]
@@ -1257,9 +1254,7 @@ def pcol_2dxy(self, x, y):
12571254
sla_grd.iup0:sla_grd.iup1] == False,
12581255
xi / sla_grd.f()[sla_grd.jup0:sla_grd.jup1,
12591256
sla_grd.iup0:sla_grd.iup1])
1260-
# Remove padded boundary
1261-
#qparam = qparam[sla_grd.jup0:sla_grd.jup1, sla_grd.iup0:sla_grd.iup1]
1262-
#xi = xi[sla_grd.jup0:sla_grd.jup1, sla_grd.iup0:sla_grd.iup1]
1257+
12631258
xicopy = np.ma.copy(xi)
12641259

12651260
elif 'sla' in diag_type:
@@ -1280,7 +1275,7 @@ def pcol_2dxy(self, x, y):
12801275
# Get contours of Q/sla parameter
12811276
if 'first_record' not in locals():
12821277

1283-
print '------ getting SLA contours'
1278+
print '------ processing SLA contours for eddies'
12841279
contfig = plt.figure(99)
12851280
ax = contfig.add_subplot(111)
12861281

@@ -1370,9 +1365,10 @@ def pcol_2dxy(self, x, y):
13701365
A_eddy.set_old_variables()
13711366
C_eddy.set_old_variables()
13721367
start = False
1368+
print '------ tracking eddies'
13731369
else:
13741370
first_record = False
1375-
1371+
13761372

13771373
# Track the eddies
13781374
#print 'start A tracking'

0 commit comments

Comments
 (0)