Updated so that oceanmask is used instead of minimum depth