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

timestamps #20

Open
joaomamede opened this issue Jun 23, 2020 · 0 comments
Open

timestamps #20

joaomamede opened this issue Jun 23, 2020 · 0 comments

Comments

@joaomamede
Copy link

joaomamede commented Jun 23, 2020

Hi,

Thank you for pims_nd2.

IS there anyway of retrieving the time stamps metadata?


>frames =  pims.ND2_Reader('E:/JM/igfp3_caruby3_rutin_BVD_F2_2days.nd2')

>frames.bundle_axes = 'zyx'  # when 'z' is available, this will be default

>​print(frames.sizes)

>>    {'x': 2048, 'y': 2044, 'c': 3, 't': 126, 'm': 23, 'z': 21}

> meta = frames.metadata

> print(meta)

 >> {'width': 2048, 'width_bytes': 12288, 'height': 2044, 'components': 3, 'bitsize_memory': 16, 'bitsize_significant': 16, 'sequence_count': 60858, 'tile_width': 2048, 'tile_height': 2044, 'compression': None, 'compression_quality': 4294967197, 'plane_count': 3, 'angle': -1.5867835237991448, 'calibration_um': 0.108333333333333, 'time_start_jdn': 2459020.447350243, 'time_start': datetime.datetime(2020, 6, 19, 15, 44, 11, 61004), 'time_start_utc': datetime.datetime(2020, 6, 19, 22, 44, 11, 61004), 'objective': 'Plan Apo λ 60x Oil', 'magnification': -1.0, 'NA': 1.4, 'refractive_index1': 1.515, 'refractive_index2': 1.515, 'pinhole': 0.0, 'zoom': 1.0, 'projective_mag': -1.0, 'image_type': 'normal', 'z_home': 0, 'plane_0': {'components': 1, 'rgb_value': (0.0, 0.0, 1.0), 'name': 'a647', 'oc': 'a647', 'emission_nm': 670.0}, 'plane_1': {'components': 1, 'rgb_value': (1.0, 0.0, 0.0), 'name': 'mRuby', 'oc': '', 'emission_nm': 620.0}, 'plane_2': {'components': 1, 'rgb_value': (0.0, 1.0, 0.0), 'name': 'GFP', 'oc': '', 'emission_nm': 535.0}}

This is what I get from a 176 time frame file.
I have timelapses that range from 5 minutes, to 15minutes and then I finish with 30mins over 2days, so I need the exact deltaT between frames.

Best

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

No branches or pull requests

1 participant