Skip to content

timestamps #20

@joaomamede

Description

@joaomamede

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions