Code associated with paper: Hart, T. et al, Behavioural switching in a central place forager: patterns of diving behaviour in the macaroni penguin (Eudyptes chrysolophus), Marine Biology 2010