Local computation of the geostrophic pressure at the top of the core