def get_data(self, element, ranges, style): self._norm_kwargs(element, ranges, style, element.vdims[0]) style.pop('interpolation', None) zs = get_raster_array(element)[::-1] l, b, r, t = element.bounds.lbrt() style['extent'] = [l, r, b, t] if self.geographic: style['transform'] = element.crs return (zs,), style, {}
def get_data(self, element, ranges, style): self._norm_kwargs(element, ranges, style, element.vdims[0]) style.pop('interpolation', None) zs = get_raster_array(element)[::-1] l, b, r, t = element.bounds.lbrt() style['extent'] = [l, r, b, t] if self.geographic: style['transform'] = element.crs return (zs,), style, {}