Currently a work in progress. This repository contains examples of the code used in Eli Faigle's 2024 Senior Thesis to filter datasets by tidal band and estimate oceanic kinetic energy. The resulting figures are also here.
Spectral Analysis: This directory holds all Python scripts and figures related to globally-averaged spectra and latitudinally-averaged spectra.
Velocity Filtering and KE Estimation: This directory holds all Python scripts used to filter the data around specific tidal bands (D, SD, LF, inertial) and estimate the oceanic KE in each band. KE maps and ratio figures comparing Eulerian and Lagrangian calculations are included.
Note: Figure files are centered around the 'step' for which they are named: 31-Jan-2014, 02-Mar-2014, 01-Apr-2014, 01-May-2014, 31-May-2014, 30-Jun-2014, 30-Jul-2014, 29-Aug-2014, 28-Sep-2014, 28-Oct-2014, 27-Nov-2014. All figures were produced at 0 m and 15 m depths.
Global Spectra:
-
calculate-hycom-lagrangian-spectra.py: Used to calculate Lagrangian spectra. -
hycom_spectra_estimate.py: Used to calculate Eulerian spectra -
eul_lag_spec.ipynb: Used to create Eulerian and Lagrangian comparison figures. -
Figures: Contains all Eulerian vs. Lagrangian global spectra plots at 0 and 15 meters.
Latitudinal Spectra:
-
zonal_avg.py: Used to calculate and plot Lagrangian and Eulerian latitudinally-averaged spectra. -
Figures: Contains all figures created byzonal_avg.py.
inertial:
-
eul_inert.py: Used to filter around inertial frequency and estimate Eulerian KE. -
lag_inertial_filtering.py: Used to filter around inertial frequency and estimate Lagrangian KE. -
Figures: Eulerian, Lagrangian, and ratio figures for inertial KE.
LF
-
lag_LF.py: Used to apply a lowpass filter to the Lagrangian velocities. -
lag_LF_15m_stats2d.py: Used to estimate KE and bin in 1/2 degree lat and lon bins from the output ofbutter_withmean.py. -
eul_LF_eke_cw.py: Used to filter Eulerian data around LF eddy kinetic energy and estimate the 'clockwise' energy. This is combined with the 'counterclockwise' energy to get the total. -
eul_LF_mke_15m.py: Used to filter Eulerian data around LF mean kinetic energy. This is combined with the EKE to get the total kinetic energy. -
Figures: Contains all LF EKE, MKE, and TKE figures.
SD_D:
-
eul_wavelet_cc.py: Used to apply a bandpass filter to the Eulerian velocities around the D and SD bands and estimate the 'clockwise' KE. This is combined with the 'counterclockwise' energy to get the total. -
lag_wavelet_0m_D_SD.py: Used to apply a bandpass filter to the Lagrangian velocities around the D and SD bands and estimate the KE. -
Figures: Contains all SD and D figures.
unfiltered:
-
eul_var.py: Used to estimate unfiltered Eulerian KE. -
lag_var.py: Used to estimate the unfiltered Lagrangian KE. -
Figures: Contains all unfiltered figures.