docs: def max_value(self):
          """
          The maximum pixel value of the ``data`` within the source
          segment.
          """
  
          if self._is_completely_masked:
              return np.nan * self._data_unit
          else:
              return np.max(self.values)