Browse Source

resolves #125

feature/load_slices
Jim Rybarski 9 years ago
parent
commit
f256a3a03d
1 changed files with 0 additions and 14 deletions
  1. +0
    -14
      woo.py

+ 0
- 14
woo.py View File

@ -1,14 +0,0 @@
from nd2reader import Nd2
from pprint import pprint
import six
n = Nd2("/home/jim/nd2s/FYLM-141111-001.nd2")
# for k, v in n._parser.raw_metadata.image_metadata_sequence[b'SLxPictureMetadata'][b'sPicturePlanes'][b'sSampleSetting'][b'a1'].items():
for camera in n._parser._raw_metadata.image_metadata_sequence[b'SLxPictureMetadata'][b'sPicturePlanes'][b'sSampleSetting'].values():
name = camera[six.b('pCameraSetting')][six.b('CameraUserName')]
id = camera[six.b('pCameraSetting')][six.b('CameraUniqueName')]
channel_name = camera[six.b('sOpticalConfigs')][six.b('')][six.b('sOpticalConfigName')]
x_binning = camera[six.b('pCameraSetting')][six.b('FormatFast')][six.b('fmtDesc')][six.b('dBinningX')]
y_binning = camera[six.b('pCameraSetting')][six.b('FormatFast')][six.b('fmtDesc')][six.b('dBinningY')]
exposure = camera[six.b('dExposureTime')]

Loading…
Cancel
Save