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