def _get_band(self, high_res, low_res, color, ratio):
        """Figure out what data should represent this color."""
        if self.high_resolution_band == color:
            ret = high_res
        else:
            ret = low_res * ratio
            ret.attrs = low_res.attrs.copy()
        return ret
def _get_band ( self , high_res , low_res , color , ratio ) : if self . high_resolution_band == color : ret = high_res else : ret = low_res * ratio ret . attrs = low_res . attrs . copy ( ) return ret
Figure out what data should represent this color.