Data-Driven Identification Of Coherent Structures In Turbulent Flows: From Navier-Stokes To Magnetohydrodynamics