This release contains the analysis code used in “Observations of tracer ventilation in the Cape Basin, Agulhas Current Retroflection” (Koets et al.). The code supports the processing and analysis of high-resolution underwater glider and satellite observations to investigate tracer ventilation, submesoscale shear-driven instabilities, and meso- to submesoscale stirring in the Cape Basin.