-
Notifications
You must be signed in to change notification settings - Fork 56
RDA Template Images can't decode some image tiles from RDA #727
Comments
Looks like
CatalogImage tiles are fetched with a .tif extension, RDATemplate images have no extension. If the tile has a Some possible solutions:
The problem is hinted at here: with a |
Modifying the tile reading to: try:
arr = imread(temp.name)
except SyntaxError:
arr = imread(temp.name, plugin='tifffile') seems to work. The question is can template nodes return tiles of other image types, and whether |
Need to look at sniffing the mimetype of the image |
RDA returns mimetypes for all tiles, so we'll use that to pick the appropriate image loading plugin: https://github.com/DigitalGlobe/gbdxtools/tree/ISS-727-template-tiles |
Manually merged to 0.16.7 |
This error also returns the odd error about There is a workaround for 0.16.5 and earlier versions: from skimage import io
io.use_plugin('tifffile', 'imread') This forces the fetcher to use the |
Error is occuring here:
https://github.com/DigitalGlobe/gbdxtools/blob/master/gbdxtools/rda/fetch/threaded/libcurl/easy.py#L55
imread
can't figure out the pixel mode, and is throwing the error'unknown pixel mode'
The text was updated successfully, but these errors were encountered: