You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
800 B

  1. from nd2reader import Nd2
  2. from pprint import pprint
  3. n = Nd2("/home/jim/code/nd2reader/FYLM-140804-001.nd2")
  4. # print("Height: ", n.height)
  5. # print("Width: ", n.width)
  6. # for fov in n.fields_of_view:
  7. # print(fov.x, fov.y, fov.z, fov.pfs_offset)
  8. # pprint(n.metadata['ImageMetadataSeq']['SLxPictureMetadata']['sPicturePlanes'])
  9. # for label, channel in n.metadata['ImageMetadataSeq']['SLxPictureMetadata']['sPicturePlanes']['sPlaneNew'].items():
  10. # print(channel['sDescription'])
  11. # print(n.metadata['ImageMetadataSeq']['SLxPictureMetadata']['sPicturePlanes']['sSampleSetting'][label]['dExposureTime'])
  12. # print(n.metadata['ImageMetadataSeq']['SLxPictureMetadata']['sPicturePlanes']['sSampleSetting'][label]['pCameraSetting']['CameraUserName'])
  13. for channel in n.channels:
  14. print(channel)