Hi,
As seen in the code above I do only care about the frames (/planes) already acquired. However, I will need the frames in (acquisition-) order!
That shouldn't be a problem then.
As I said, I hope it to be working with as many acquisition programs as possible. For now the most important one would be Nikon's ND2 format.
From my understanding it should be possible to achieve it in theory, as long as the file format specifies plane information (as in size & type) in the beginning of the file and then adds new planes in order.
For ND2 specifically, this should mostly work. You may run into some trouble if you need to know the specific timepoint/Z section/channel/etc. of a particular plane, but I think it would work to just retrieve the pixel data.
However, we're not really set up to test this ourselves. If you can send a set of files in various stages of acquisition, that would help a lot in testing. If that's not possible, then it would help to see the full text of any error messages that you are receiving. I will send information privately on how to send files to us.
Also, it would not work if it used compression that is not being done frame wise (although it sounds weird to me do not do it frame wise, I don't know what's common though).
Frame-by-frame compression is the most common approach. In some cases (e.g. ICS) you will see the entire set of pixel data compressed at once; ICS is rarely (never?) used as an acquisition format, though.
The one somewhat common case that I can think of that really won't work at all is if the file is an MS OLE document; Zeiss ZVI, Hamamatsu/SimplePCI .cxd, and Olympus FV1000 .oib all fall into this category.
Regards,
-Melissa