Skip to content

Commit 9d3aaed

Browse files
committed
Changes to make_eddy_track_CLS.py
1 parent 8e19c5c commit 9d3aaed

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

make_eddy_track_CLS.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
eddy = pickle.load(the_pickle)
6464
print '--- loaded %s' % PKL_FILE
6565

66-
print 'eddy.index', eddy.index
66+
#print 'eddy.index', eddy.index
6767
eddy.savedir = DATA_DIR + eddy.savedir.rpartition('/')[-1]
6868

6969
eddy.TRACK_DURATION_MIN = 10
@@ -79,6 +79,8 @@
7979
eddy.tracklist = tracklist.tolist()
8080

8181
eddy.index = index
82+
eddy.ch_index = ch_index
83+
eddy.ncind = ncind
8284

8385
eddy.old_lon = old_lon
8486
eddy.old_lat = old_lat
@@ -103,7 +105,6 @@
103105
eddy = track_eddies(eddy, first_record)
104106
tracklist = np.copy(eddy.tracklist)
105107

106-
index = eddy.index
107108

108109
print 'eddy.index', eddy.index
109110
print len(eddy.tracklist)
@@ -113,6 +114,10 @@
113114
print eddy.new_time_tmp[0]
114115
eddy.write2netcdf(eddy.new_time_tmp[0])
115116

117+
index = eddy.index
118+
ch_index = eddy.ch_index
119+
ncind = eddy.ncind
120+
116121
old_lon = eddy.old_lon
117122
old_lat = eddy.old_lat
118123
old_amp = eddy.old_amp

make_eddy_tracker_list_obj.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def __init__(self, DATATYPE, SIGN_TYPE, SAVE_DIR, grd, search_ellipse,
378378
self.old_contour_s = []
379379
self.old_uavg_profile = []
380380
self.old_shape_error = []
381-
self.new_list = True # flag indicating new list
381+
self.new_list = True # flag indicating new list
382382
self.index = 0 # counter
383383
self.ncind = 0 # index to write to nc files, will increase and increase
384384
self.ch_index = 0 # index for Chelton style nc files

py_eddy_tracker_classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ def track_eddies(Eddy, first_record):
10371037
Eddy.new_lon_tmp[new_ind])] = False
10381038
#print 'aa', new_eddy_inds
10391039
dist_mat[:, new_ind] = far_away # km
1040-
print '*********************************************'
1040+
#print '*********************************************'
10411041

10421042

10431043
if Eddy.TRACK_EXTRA_VARIABLES:

0 commit comments

Comments
 (0)