rio-tiler 6.4.3__py3-none-any.whl → 6.4.4__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.4.3"
3
+ __version__ = "6.4.4"
4
4
 
5
5
  from . import ( # noqa
6
6
  colormap,
rio_tiler/reader.py CHANGED
@@ -238,7 +238,10 @@ def read(
238
238
 
239
239
  # if data has Nodata then we simply make sure the mask == the nodata
240
240
  if nodata is not None:
241
- data.mask = data.data == nodata
241
+ if numpy.isnan(nodata):
242
+ data.mask = numpy.isnan(data.data)
243
+ else:
244
+ data.mask = data.data == nodata
242
245
 
243
246
  stats = []
244
247
  for ix in indexes:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rio-tiler
3
- Version: 6.4.3
3
+ Version: 6.4.4
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=rx1oh4GVoIrzSnsvVZYRSRTIPaB0IUT6P9mDoAbWRW8,192
1
+ rio_tiler/__init__.py,sha256=rDu7nG1RrgQ8RDMQNNaVPnERqj_ESlMKfNyxNUp-72I,192
2
2
  rio_tiler/colormap.py,sha256=hspVEbnvbRPGPEykWxV_PoqQpltbfSR7_g35mzd1d6s,9755
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=0v79nn69AH13oLnVs60qyZ2rf17VxWBli6Ws2fg8SL8,28243
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=W08HPOfE48BrbsDZgHKBPhJrrZsOLz-r0wq9r27VnAs,21681
10
+ rio_tiler/reader.py,sha256=KT3mFHp0jfhPsgdjqkFA9M60uOj0259fmQYJ7in97p4,21802
11
11
  rio_tiler/tasks.py,sha256=O4laTCr66XHJ-4REWg3SAaA1pre0OMG0NklbKZ2g9Fc,3181
12
12
  rio_tiler/types.py,sha256=508_E5R-nKrAo8TWB-6h7pF6SYwNM8kJPiHjQw-k-tA,1443
13
13
  rio_tiler/utils.py,sha256=WHAjsO1C-oW-cMb8Q50D6fCDvLji-eT2oxN9SUjzZxQ,26514
@@ -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.4.3.dist-info/METADATA,sha256=fjeMD-0DJ4uGXv0wKufK6f2C9TFMVbEJzoVDivgpwbU,11869
237
- rio_tiler-6.4.3.dist-info/WHEEL,sha256=bq9SyP5NxIRA9EpQgMCd-9RmPHWvbH-4lTDGwxgIR64,87
238
- rio_tiler-6.4.3.dist-info/licenses/AUTHORS.txt,sha256=FCVd4Tjg-8syl0ZugCunpXER8X2-XonW2ZfllyTnRvE,158
239
- rio_tiler-6.4.3.dist-info/licenses/LICENSE,sha256=vq8Tt4KoYQT9JxAjQ4yXMmmhFYRTsBRgrOj-ao-bC5o,1517
240
- rio_tiler-6.4.3.dist-info/RECORD,,
236
+ rio_tiler-6.4.4.dist-info/METADATA,sha256=-ftlR9BtFGQnZysXiZrS8hiYwtSedFDVfYW5rdzjC-I,11869
237
+ rio_tiler-6.4.4.dist-info/WHEEL,sha256=uNdcs2TADwSd5pVaP0Z_kcjcvvTUklh2S7bxZMF8Uj0,87
238
+ rio_tiler-6.4.4.dist-info/licenses/AUTHORS.txt,sha256=FCVd4Tjg-8syl0ZugCunpXER8X2-XonW2ZfllyTnRvE,158
239
+ rio_tiler-6.4.4.dist-info/licenses/LICENSE,sha256=vq8Tt4KoYQT9JxAjQ4yXMmmhFYRTsBRgrOj-ao-bC5o,1517
240
+ rio_tiler-6.4.4.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.22.3
2
+ Generator: hatchling 1.22.4
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any