visit-dav / visit

VisIt - Visualization and Data Analysis for Mesh-based Scientific Data
https://visit.llnl.gov
BSD 3-Clause "New" or "Revised" License
435 stars 114 forks source link

Can anyone read a depth.Z file after saving a window from VisIt #5105

Open markcmiller86 opened 4 years ago

markcmiller86 commented 4 years ago

Describe the bug

If you check the box to save Depth Pixel data for an image save, you get a file named something like foo0000.depth.Z. I think it is a compressed, 2D array of float values. However, no matter what I tried, I was unable to read it. I tried to uncompress with unzip, gunzip, uncompress. Nothing worked. A file command indicates its zlib compressed data. But, it seems to have no header encoded in the file and so maybe needs some 'help' to read correctly?

I suspect the only consumer of this file is Cinema and if so, I suspect that may be because Cinema is being used in such a way or agnostic to whether the compressed data is a raw buffer or a full fledged zlib compressed stream. These things are different.

brugger1 commented 4 years ago

My guess is that Brad would have added this functionality.

brugger1 commented 4 years ago

We might not want to change the current behavior if this is for Cinema. We should either provide a way to convert this into something that others can use or provide another option.