rio-tiler 6.6.0__py3-none-any.whl → 6.6.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
rio_tiler/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  """rio-tiler."""
2
2
 
3
- __version__ = "6.6.0"
3
+ __version__ = "6.6.1"
4
4
 
5
5
  from . import ( # noqa
6
6
  colormap,
rio_tiler/reader.py CHANGED
@@ -263,8 +263,12 @@ def read(
263
263
  data = data.astype("float32", casting="unsafe")
264
264
 
265
265
  # reshaped to match data
266
- scales = numpy.array(dataset.scales).reshape(-1, 1, 1)
267
- offsets = numpy.array(dataset.offsets).reshape(-1, 1, 1)
266
+ scales = numpy.array(dataset.scales)[numpy.array(indexes) - 1].reshape(
267
+ (-1, 1, 1)
268
+ )
269
+ offsets = numpy.array(dataset.offsets)[numpy.array(indexes) - 1].reshape(
270
+ (-1, 1, 1)
271
+ )
268
272
 
269
273
  numpy.multiply(data, scales, out=data, casting="unsafe")
270
274
  numpy.add(data, offsets, out=data, casting="unsafe")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rio-tiler
3
- Version: 6.6.0
3
+ Version: 6.6.1
4
4
  Summary: User friendly Rasterio plugin to read raster datasets.
5
5
  Project-URL: Homepage, https://cogeotiff.github.io/rio-tiler/
6
6
  Project-URL: Documentation, https://cogeotiff.github.io/rio-tiler/
@@ -1,4 +1,4 @@
1
- rio_tiler/__init__.py,sha256=KBppTQcprO6lj0jdPe52UbbmBDGLXnQ-eDtixrPuB1Q,192
1
+ rio_tiler/__init__.py,sha256=X-zVjD3FwH-cTqUPzWEmSFUlboGbaLVv9uZgCGPuRW4,192
2
2
  rio_tiler/colormap.py,sha256=uXeK2p-h6fMqTaCogHWkDP6AqJDtKCpCHa5ylRdEnj0,9775
3
3
  rio_tiler/constants.py,sha256=55i-7JZDupTXZdLgxL03KsgM4lAzuGuIVP1zZKktzp0,426
4
4
  rio_tiler/errors.py,sha256=ag-wNr13JaQ4YcQzWWPFzjegeGdzJIMMrOrbb3coQ40,1733
@@ -7,7 +7,7 @@ rio_tiler/logger.py,sha256=RR8lnW3uVXkFkPa3nNJS_tTndmdiNNDVXpCDGDxGf0A,81
7
7
  rio_tiler/models.py,sha256=slIxi1xjIdJ0fr1UmOxZzD3KGkJ3DADsC9DKEO5CjJM,28173
8
8
  rio_tiler/profiles.py,sha256=EAx2JdcaOcMw5PZjxbCqQBXXWMac9mjtpHoVFPJEDNQ,1562
9
9
  rio_tiler/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- rio_tiler/reader.py,sha256=Bi8BbeIF7BDSOPLEyb153tdNQIiZgTY4l4vteg5FqN8,22080
10
+ rio_tiler/reader.py,sha256=e3oWE_RUpRGehayDS8b0sB8ckcLbXHNRxnOJd5LxD7M,22196
11
11
  rio_tiler/tasks.py,sha256=tiQo24rZHBVxids40QkNInuMzDFEei08zYW3I_pkSVE,3157
12
12
  rio_tiler/types.py,sha256=508_E5R-nKrAo8TWB-6h7pF6SYwNM8kJPiHjQw-k-tA,1443
13
13
  rio_tiler/utils.py,sha256=3TBlnQVFA-2igDpMrwxhjN_Quvc8t21xv7sQkM7e6dQ,27748
@@ -233,8 +233,8 @@ rio_tiler/mosaic/reader.py,sha256=_YBwTJwHvXOzKwpNpOmmh0F4yicyxgWo9vHyof3w_Do,96
233
233
  rio_tiler/mosaic/methods/__init__.py,sha256=tgkXM9skaTLXIm5QFoheOEznQXM97KGflcAWHfkrt1g,612
234
234
  rio_tiler/mosaic/methods/base.py,sha256=9YZJWVRwH5Fk9KO9q5CW52Q8Mf60tAJ21oM4ixEDXBo,1424
235
235
  rio_tiler/mosaic/methods/defaults.py,sha256=z34lna2wGXnAPwculjk_6hDrloqS8wzer68FFoIo7pg,6744
236
- rio_tiler-6.6.0.dist-info/METADATA,sha256=7LKGbh4UH_R9XzxsXyHezpUM7fg0wdzC1y3tsdlmcTs,11920
237
- rio_tiler-6.6.0.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
238
- rio_tiler-6.6.0.dist-info/licenses/AUTHORS.txt,sha256=FCVd4Tjg-8syl0ZugCunpXER8X2-XonW2ZfllyTnRvE,158
239
- rio_tiler-6.6.0.dist-info/licenses/LICENSE,sha256=vq8Tt4KoYQT9JxAjQ4yXMmmhFYRTsBRgrOj-ao-bC5o,1517
240
- rio_tiler-6.6.0.dist-info/RECORD,,
236
+ rio_tiler-6.6.1.dist-info/METADATA,sha256=-tSCelgQL0nKonwvt527pwOcOzyNCjDSpV07xdl7v0c,11920
237
+ rio_tiler-6.6.1.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
238
+ rio_tiler-6.6.1.dist-info/licenses/AUTHORS.txt,sha256=FCVd4Tjg-8syl0ZugCunpXER8X2-XonW2ZfllyTnRvE,158
239
+ rio_tiler-6.6.1.dist-info/licenses/LICENSE,sha256=vq8Tt4KoYQT9JxAjQ4yXMmmhFYRTsBRgrOj-ao-bC5o,1517
240
+ rio_tiler-6.6.1.dist-info/RECORD,,