A determination of the galactic pole from stars at large distances from the galactic plane