-
Notifications
You must be signed in to change notification settings - Fork 29
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
More metadata? #36
Comments
I realized this is a duplicate. Sorry |
Hi @joaomamede there is more metadata available but it is "hidden", there is not a nice parser available yet that converts it from the raw bytes to the proper Python dtypes. Some additional data is available via this class https://github.com/rbnvrw/nd2reader/blob/master/nd2reader/raw_metadata.py which is accessible as |
The approach you mention via the I am a bit hesitant to expand the |
Regarding the extraction of the Z step, I have had some adventures with the file generated in my lab. As the stage is very slightly wobbling every now and then (of approx. 25 nm, as registered by the instrument) it is not obvious to obtain a Z step from the distance between each Z location/coordinate. In my case, I can extract the Z step from the stage metadata by parsing and ImageText field with this regex When that fails, I revert to something like what you mentioned:
And then I check the mode of the calculated Z steps and raise a warning if the mode is less than 50% of the steps (i.e., case of extra-wobbliness of the stage). Hope this can help. |
This is what I did
|
How did you get to this? My solution above, sometimes fails when the file is a bit different. image_text_info[b'SLxImageTextInfo'][b'TextInfoItem_5'] is not always there. |
Hi, when I print the metadata from Nd2Reader I have a lot of things missing (even comparing to the metadata when opening with bioformats).
Is there any way for us to get more metadata with nd2reader?
Example of metadata in the .nd2 files that are not available (by order of preference and need):
EmissionWavelength
The setup PhysicalSizeZ (we can estimate from the Z positions, however I have the accuracy in my experiments to "open" and it varies a bit).
RefractiveIndex
Detector ID /Model etc.
DeltaT (when there's only one T the acquisition time)
ExposureTime,
Position X, Y and Z
Color Set for each Channel in NIS-elements.
Thank you for the module!
The text was updated successfully, but these errors were encountered: