Coherent pattern identification in fluid flows