In DX, a delayed color dataset often has "unsigned byte" colors ref'ing a "float[256][3]" color map. DX of course renders images of this sort with no problem, as ReadImage creates them.
However, Import refuses to load such a field (even one created by ReadImage->Export), reporting: ---------------------------------------------------------------------- ERROR: 38::/Import:0: Invalid data: `colors' component must be type INT to `ref' another component / file 'power-button.dx' line 23 ---------------------------------------------------------------------- Does anyone have a preference for what list of types should allowed to "ref" another component in addition to TYPE_INT and TYPE_UBYTE (e.g. TYPE_BYTE, TYPE_SHORT, TYPE_USHORT). The check is at edfio.c:212. It would need to change along with the probe code below it. Anyone have a feel whether other areas break as well? FWIW when I hit this I was writing a colormapped volume (byte voxels) format converter to DX native, trying to mimick what DX does. Randy ---- SIMPLE BUG DEMO ---- > dx -script dx> data = ReadImage( "delayed-color-image.tif", "tiff" ); dx> Export(data, "power-button.dx"); dx> data = Import( "power-button.dx" ); 0: ERROR: 38::/Import:0: Invalid data: `colors' component must be type INT to `ref' another component / file 'power-button.dx' line 23 -- Randall Hopper (mailto:[EMAIL PROTECTED]) Lockheed Martin Operation Support EPA Scientific Visualization Center US EPA MD/24 ERC-1A; RTP, NC 27711