The estimation of a microscopic pressure tensor in an adsorbed thin film on a planar surface remains a challenge in both experiment and theory. While the normal pressure is well-defined for a planar surface, the tangential pressure at a point is not uniquely defined at the nanoscale. We report a new method that allows us to calculate the local pressure tensor and its spatial integral using an arbitrary contour definition of the "virial-route" local pressure tensor. We show that by integrating the local tangential pressure over a small region of space, roughly the range of the intermolecular forces, it is possible to define a coarse-grained tangential pressure that appears to be unique and free from ambiguities in the definition of the local pressure tensor. We support our argument by presenting the results for more than ten types of contour definitions of the local pressure tensor. By defining the coarse-grained tangential pressure, we can also find the effective thickness of the adsorbed layer and, in the case of a porous material, the statistical pore width. The coarse-grained in-layer and in-pore tangential pressures are determined for Lennard-Jones argon adsorbed in realistic carbon slit pores, providing a better understanding of the pressure enhancement for strongly wetting systems.