Skip to content

Commit b5643ea

Browse files
committed
Version 1.4.1
Bugfix
1 parent 0b410dc commit b5643ea

File tree

5 files changed

+16
-13
lines changed

5 files changed

+16
-13
lines changed

haversine_distmat.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
!
2828
! If you have ifort on your system, change 'gfortran' to 'intelem'
2929
!
30-
! Version 1.4.0
30+
! Version 1.4.1
3131
!
3232
!===========================================================================
3333

make_eddy_track_AVISO.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
2525
make_eddy_track_AVISO.py
2626
27-
Version 1.4.0
27+
Version 1.4.1
2828
2929
3030
Scroll down to line ~640 to get started
@@ -680,11 +680,14 @@ def pcol_2dxy(self, x, y):
680680
if new_AVISO:
681681
new_AVISO_SUBSAMP = True
682682
if new_AVISO_SUBSAMP:
683-
days_btwn_recs = 7. # put sampling rate (days) here
683+
days_btwn_recs = 3. # put sampling rate (days) here
684684
else:
685685
days_btwn_recs = 1.
686686
else: # old seven day AVISO
687687
days_btwn_recs = 7.
688+
689+
# Save only tracks longer than...
690+
track_duration_min = 28. # days
688691

689692
# Set path(s) to directory where SSH data are stored...
690693
if 'Global' in the_domain:
@@ -729,8 +732,8 @@ def pcol_2dxy(self, x, y):
729732
# Path to directory where outputs are to be saved...
730733
#savedir = directory
731734
#savedir = '/marula/emason/aviso_eddy_tracking/pablo_exp/'
732-
#savedir = '/marula/emason/aviso_eddy_tracking/new_AVISO_test/'
733-
savedir = '/marula/emason/aviso_eddy_tracking/junk/'
735+
savedir = '/marula/emason/aviso_eddy_tracking/new_AVISO_test/'
736+
#savedir = '/marula/emason/aviso_eddy_tracking/junk/'
734737
#savedir = '/marula/emason/aviso_eddy_tracking/new_AVISO_test/BlackSea/'
735738
#savedir = '/path/to/save/your/outputs/'
736739

@@ -795,8 +798,6 @@ def pcol_2dxy(self, x, y):
795798
else:
796799
Exception
797800

798-
# Save only tracks longer than...
799-
track_duration_min = 28. # days
800801

801802
subdomain = True
802803
if the_domain in 'Global':
@@ -905,6 +906,8 @@ def pcol_2dxy(self, x, y):
905906

906907
# Use this for subsampling to get identical list as old_AVISO
907908
#AVISO_files = AVISO_files[5:-5:7]
909+
if new_AVISO_SUBSAMP:
910+
AVISO_files = AVISO_files[5:-5:np.int(days_btwn_recs)]
908911

909912
# Set up a grid object using first AVISO file in the list
910913
sla_grd = AvisoGrid(AVISO_files[0], lonmin, lonmax, latmin, latmax)

make_eddy_track_ROMS.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
2525
make_eddy_track_ROMS.py
2626
27-
Version 1.4.0
27+
Version 1.4.1
2828
2929
3030

make_eddy_tracker_list_obj.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
2626
make_eddy_tracker_list_obj.py
2727
28-
Version 1.4.0
28+
Version 1.4.1
2929
3030
3131
===========================================================================
@@ -391,7 +391,7 @@ def create_netcdf(self, directory, savedir, title,
391391
nc.title = title + ' eddy tracks'
392392
nc.directory = directory
393393
nc.days_between_records = np.float64(self.days_btwn_recs)
394-
nc.min_track_duration = np.float64(self.track_duration_min)
394+
nc.track_duration_min = np.float64(self.track_duration_min)
395395

396396
if 'Q' in self.diag_type:
397397
nc.Q_parameter_contours = self.qparameter

py_eddy_tracker_classes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
2525
py_eddy_tracker_classes.py
2626
27-
Version 1.4.0
27+
Version 1.4.1
2828
===========================================================================
2929
3030
@@ -456,7 +456,7 @@ def calc_uavg(points, uspd, lon, lat):
456456
#conts_y = np.array([])
457457

458458
# Unpack indices for convenience
459-
istr, iend, jstr, jend = Eddy.i0, Eddy.i1, Eddy.j0, Eddy.j1
459+
#istr, iend, jstr, jend = Eddy.i0, Eddy.i1, Eddy.j0, Eddy.j1
460460
imin, imax, jmin, jmax = Eddy.imin, Eddy.imax, Eddy.jmin, Eddy.jmax
461461

462462
# TO DO: these would be passed in instead of grd if using Cython
@@ -505,7 +505,7 @@ def calc_uavg(points, uspd, lon, lat):
505505
proceed = False
506506

507507
else:
508-
# Iterate until 1 pixels
508+
# Iterate until 1 pixel
509509
if np.all([poly_e.contains_path(poly_i),
510510
poly_i.contains_point([centlon_e, centlat_e]),
511511
np.logical_and(np.sum(mask_i) >= 1,

0 commit comments

Comments
 (0)