Skip to content

Commit d726d84

Browse files
committed
Cleaning
1 parent 3629edd commit d726d84

File tree

1 file changed

+4
-106
lines changed

1 file changed

+4
-106
lines changed

make_eddy_track_AVISO.py

Lines changed: 4 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -468,18 +468,6 @@ def getSurfGeostrVel(self, zeta):
468468
by Evan Mason
469469
Changed to gv2, 14 May 07...
470470
'''
471-
#def gv2(zeta, gof, pm, pn, umask, vmask): # Pierrick's version
472-
#ugv = np.copy(vmask)
473-
#ugv *= (zeta[1:] - zeta[:-1])
474-
#ugv *= self.half_interp(pn[1:], pn[:-1])
475-
#ugv = self.v2rho_2d(ugv)
476-
#ugv *= -gof
477-
#vgv = np.copy(umask)
478-
#vgv *= (zeta[:,1:] - zeta[:,:-1])
479-
#vgv *= self.half_interp(pm[:,1:], pm[:,:-1])
480-
#vgv = self.u2rho_2d(vgv)
481-
#vgv *= gof
482-
#return ugv, vgv
483471
def gv2(zeta, gof, pm, pn, umask, vmask): # Pierrick's version
484472
ugv = -gof * self.v2rho_2d(vmask * (zeta[1:] - zeta[:-1]) \
485473
* 0.5 * (pn[1:] + pn[:-1]))
@@ -640,77 +628,16 @@ def pcol_2dxy(self, x, y):
640628
AVISO_files = 'dt_ref_global_merged_msla_h_qd_????????_*.nc'
641629

642630
# Set date range (YYYYMMDD)
643-
#date_str, date_end = 19921014, 20110119 # Chelton 2011
644-
#date_str, date_end = 19921014, 20120404 # Chelton 2011 (updated)
645-
#date_str, date_end = 20000105, 20001227 # timing experiment
646-
#date_str, date_end = 19960828, 20120404 # test_gauss_sla.y
647-
date_str, date_end = 19980107, 19991110 # Pablo experiment
631+
date_str, date_end = 19980107, 19991110 #
648632

649633
# Choose type of diagnostic: either q-parameter ('Q') or sea level anomaly ('sla')
650-
#diag_type = 'Q'
634+
#diag_type = 'Q' <<< not implemented in 1.0.1
651635
diag_type = 'sla'
652636

653637
days_btwn_recs = 7.
654638

655639
# Path to directory where outputs are to be saved...
656-
root_save_dir = '/home/emason/mercurial_projects/eddy_tracker/test/AVISO/'
657-
658640
#savedir = directory
659-
#savedir = '/atl_domain/median_ug/'
660-
#savedir = '/atl_domain/mean_ug/'
661-
#savedir = '/atl_domain/mean_ug/with_copy/'
662-
#savedir = '/atl_domain/mean_ug/with_copy/fixed_uavg/'
663-
#savedir = '/atl_domain/mean_ug/with_copy/fixed_uavg/sep_dist_s/'
664-
#savedir = '/atl_domain/mean_ug/with_copy/fixed_uavg/eddy_radius_s_lims/'
665-
#savedir = '/atl_domain/mean_ug/with_copy/fixed_uavg/both_eddy_radius_s+e_lims/'
666-
#savedir = '/atl_domain/new_h0/'
667-
#savedir = '/atl_domain/new_h0/half_leff_limit/'
668-
#savedir = '/atl_domain/new_h0/half_leff_limit_0.7/'
669-
#savedir = '/atl_domain/new_h0/ls_50km/'
670-
#savedir = '/atl_domain/new_h0/no_pixel_thresh/'
671-
#savedir = '/atl_domain/new_h0/spd_pixel_thresh/'
672-
#savedir = '/atl_domain/new_h0/spd_pixel_thresh/half_cm_int/'
673-
#savedir = '/atl_domain/new_h0/spd_pixel_thresh/no_rad_thresh/'
674-
#savedir = '/atl_domain/new_h0/spd_pixel_thresh/no_rad_thresh/resample_cont/'
675-
#savedir = '/atl_domain/new_h0/spd_pixel_thresh/no_rad_thresh/resample_cont/linear_h0/'
676-
#savedir = '/atl_domain/contains_point_eff/dist_thresh/median_copy/'
677-
#savedir = '/atl_domain/contains_point_eff/dist_thresh/mean_copy/'
678-
#savedir = '/atl_domain/'
679-
#savedir = '/atl_domain/shp55/'
680-
#savedir = '/atl_domain/shp55/single_extrema/'
681-
#savedir = '/atl_domain/shp55/single_extrema/chelton_ellipse/'
682-
#savedir = '/atl_domain/shp55/single_extrema/chelton_ellipse/center_local/'
683-
#savedir = '/atl_domain/shp55/single_extrema/chelton_ellipse/center_local/haversine/'
684-
#savedir = '/atl_domain/shp55/single_extrema/chelton_ellipse/center_local/shape_test_100/'
685-
#savedir = '/atl_domain/shp55/single_extrema/chelton_ellipse/center_local/unlimited_locals/'
686-
#savedir = '/atl_domain/shp55/single_extrema/chelton_ellipse/center_local/shape_test_100_unlimited_locals/'
687-
688-
689-
#savedir = '/can_domain/new_h0/spd_pixel_thresh/with_rad_thresh/'
690-
#savedir = '/can_domain/new_h0/spd_pixel_thresh/no_rad_thresh/'
691-
#savedir = '/can_domain/new_h0/spd_pixel_thresh/no_rad_thresh/evolve_5/'
692-
#savedir = '/can_domain/contains_point_eff/'
693-
#savedir = '/can_domain/contains_point_eff/dist_thresh/'
694-
#savedir = '/can_domain/contains_point_eff/dist_thresh/shp_err_40/'
695-
#savedir = '/can_domain/contains_point_eff/dist_thresh/shp_err_60/'
696-
#savedir = '/can_domain/contains_point_eff/dist_thresh/median_copy/'
697-
#savedir = '/can_domain/'
698-
699-
#savedir = root_save_dir + savedir
700-
701-
#savedir = '/shared/emason/eddy_tracks/Barbara/'
702-
#savedir = '/shared/emason/eddy_tracks/Charlotte/'
703-
#savedir = '/shared/emason/eddy_tracks/Souza/'
704-
#savedir = '/home/emason/mercurial_projects/eddy_tracker/tracks/Souza/'
705-
#savedir = '/home/emason/mercurial_projects/eddy_tracker/tracks/Barbara/'
706-
savedir = '/shared/emason/eddy_tracks/test/'
707-
#savedir = '/shared/emason/eddy_tracks/test/cent_s/'
708-
#savedir = '/shared/emason/eddy_tracks/test/cent_s/bigger_ellipse/'
709-
#savedir = '/shared/emason/eddy_tracks/global/'
710-
711-
#savedir = '/home/emason/mercurial_projects/eddy_tracker/test/AVISO/no_shape_test/canary/'
712-
#savedir = '/home/emason/mercurial_projects/eddy_tracker/test/AVISO/no_shape_test/canary/unlim_locals/'
713-
#savedir = '/marula/emason/aviso_eddy_tracking/pablo_exp_with_development_code/'
714641
savedir = '/marula/emason/aviso_eddy_tracking/pablo_exp/'
715642

716643

@@ -796,46 +723,17 @@ def pcol_2dxy(self, x, y):
796723
#lonmax = -5.5
797724
#latmin = 11.5
798725
#latmax = 38.5
799-
800-
#lonmin = -359. # Global
801-
#lonmax = -1
802-
#latmin = -50.
803-
#latmax = 50.
804-
805-
#lonmin = -179. # Southern hemisphere
806-
#lonmax = 179
807-
#latmin = -60.
808-
#latmax = -0.5
809-
810-
#lonmin = -30 # small test domain
811-
#lonmax = -12.5
812-
#latmin = 28.25
813-
#latmax = 34.25
814726

815-
#lonmin = -145. # Jaison
816-
#lonmax = -115
817-
#latmin = 25.
818-
#latmax = 45.
819-
820-
#lonmin = -179. # Barbara
727+
#lonmin = -179. # SEP
821728
#lonmax = -65
822729
#latmin = -40.
823730
#latmax = -5.
824731

825-
#lonmin = 0.5 # Charlotte
826-
#lonmax = 51.
827-
#latmin = -47.
828-
#latmax = -24.
829-
830732
#lonmin = -70. # Souza
831733
#lonmax = 30.
832734
#latmin = -50.
833735
#latmax = -15.
834-
835-
#lonmin = -10 # Test wrapping
836-
#lonmax = 25.
837-
#latmin = -47.
838-
#latmax = -24.
736+
839737

840738

841739
# Typical parameters

0 commit comments

Comments
 (0)