docs: def sky_centroid(self):
          """
          The sky coordinates of the centroid within the source segment,
          returned as a `~astropy.coordinates.SkyCoord` object.
  
          The output coordinate frame is the same as the input WCS.
          """
  
          if self._wcs is not None:
              return pixel_to_skycoord(self.xcentroid.value,
                                       self.ycentroid.value,
                                       self._wcs, origin=0)
          else:
              return None