Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CZI: Make use of TimeSpan Units #3560

Open
dgault opened this issue May 12, 2020 · 4 comments
Open

CZI: Make use of TimeSpan Units #3560

dgault opened this issue May 12, 2020 · 4 comments

Comments

@dgault
Copy link
Member

dgault commented May 12, 2020

This issue was first reported in https://forum.image.sc/t/czi-reader-illuminationtype-mapping-and-exposuretime-units/37557/3 and a sample file showing the issue is available in QA-29273

In the sample file provided the ExposureTime is seen as:

200.0 s
4000.0 s

Currently this is hardcoded in the reader as Seconds, but looking at the metadata of the sample file shows a tag which may be used to provide the correct time units:
Experiment|AcquisitionBlock|TimeSeriesSetup|Interval|TimeSpan|DefaultUnitFormat #1 ms

@dgault dgault added this to the 6.5.1 milestone May 12, 2020
@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/czi-reader-illuminationtype-mapping-and-exposuretime-units/37557/4

@dgault dgault removed this from the 6.5.1 milestone Jul 3, 2020
@dgault
Copy link
Member Author

dgault commented Jul 9, 2020

An additional report of this was received in QA-29404 and a sample file provided in QA-29403
The issue was reproduced using Bio-Formats 6.5.1

With that sample file the exposure times also have been ordered incorrectly (perhaps by size):
From the metadata the correct values are as below (expected units is ms):

Information|Image|Channel|ExposureTime #1 = 79999700
Information|Image|Channel|ExposureTime #2 = 1399999700
Information|Image|Channel|ExposureTime #3 = 184999700
Information|Image|Channel|ExposureTime #4 = 100000000

Bio-Formats reports these in seconds:

<Plane DeltaT=“1.0810000896453857” DeltaTUnit=“s” ExposureTime=“79.999751988515” ExposureTimeUnit=“s” PositionX=“-21332.75” PositionXUnit=“reference frame” PositionY=“-40943.25” PositionYUnit=“reference frame” PositionZ=“562.488” PositionZUnit=“reference frame” TheC=“0” TheT=“0" TheZ=“0”/>
     <Plane DeltaT=“1.937999963760376" DeltaTUnit=“s” ExposureTime=“100.0" ExposureTimeUnit=“s” PositionX=“-21332.75" PositionXUnit=“reference frame” PositionY=“-40943.25" PositionYUnit=“reference frame” PositionZ=“562.488" PositionZUnit=“reference frame” TheC=“1" TheT=“0” TheZ=“0"/>
     <Plane DeltaT=“4.105999946594238” DeltaTUnit=“s” ExposureTime=“1399.9997519885” ExposureTimeUnit=“s” PositionX=“-21332.75” PositionXUnit=“reference frame” PositionY=“-40943.25” PositionYUnit=“reference frame” PositionZ=“562.488” PositionZUnit=“reference frame” TheC=“2” TheT=“0" TheZ=“0”/>
     <Plane DeltaT=“5.240999937057495" DeltaTUnit=“s” ExposureTime=“184.99975198852" ExposureTimeUnit=“s” PositionX=“-21332.75" PositionXUnit=“reference frame” PositionY=“-40943.25" PositionYUnit=“reference frame” PositionZ=“562.488" PositionZUnit=“reference frame” TheC=“3" TheT=“0” TheZ=“0"/>

And OMERO displays as:

1min 20 sec
1min 40 sec 
23min 20 sec
3min 5sec

@dgault
Copy link
Member Author

dgault commented Mar 1, 2021

And additional report of this issue has been received on ome/openmicroscopy#6266

Migrating the original comment from @CFGrote which is below:

Summary
We experience problems with how exposure time is reported in in the Acquisition tab under Image. Reported values are off by factor 1000.

Details:
The exposure times for 3 channels are set to 25, 500, and 1000 ms, respectively and these values are correctly recorded in the czi file as reported by Zen:

109470097-3db28400-7a6f-11eb-90d9-a63710ae64b3

In omero, under Aqquisition/Image I get these values:
Bright: 25s (=25000 ms)
RFP: 16min40s (=1000000 ms)
EGFP: 8min20s (=500000 ms)

109471299-e0b7cd80-7a70-11eb-8c63-c8b0e80b17e2

NOTE: The wavelengths are wrong, too, but that's a problem on our side.

"Original metadata" has two entries per channel that match "ExposureTime":
"Experiment|AcquisitionBlock|MultiTrackSetup|Track|Channel|DataGrabberSetup|CameraFrameSetup|ExposureTime":
109471721-74899980-7a71-11eb-9e1a-c0878f196e1f

These values are correct.

The 2nd entry is
"Information|Image|Channel|ExposureTime":
109471739-781d2080-7a71-11eb-95d8-a549b38920cf

These values are off by 3 powers of 10 and it looks to me that this is what omero bases it's report in the Acquisition tab on.

We're in touch with people at Zeiss to clarify the meaning of the different exposure time entries in the czi metadata.

Thanks for any suggestions.

Omero Version 5.6.2

Example czi to reproduce this issue:
https://demo.openmicroscopy.org/webclient/?show=image-165834

@jaybee2
Copy link

jaybee2 commented Mar 1, 2023

Hi, I am also experiencing this issue. I took a fluorescence microscopy timeseries in October 2022 with 4 channels. When viewing the output .czi file OME Metadata in FIJI it shows an exposure time of seconds, which I think is off by a factor of 1000 (similar to the above post).
Screen Shot 2023-03-01 at 11 00 03 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants