Lagrangian Filtering: A novel method for separating internal waves from non-wave flows in high-resolution simulations