magnificationAnalysis

xripl.magnification.magnificationAnalysis(shot, camera, dataDir, px2Um, pxRef, umRef, xMin, xMax, yMin, yMax, cropDownstream=(1000, 1400), innerDiameterUm=500, innerDiameterErrUm=0, saveDir='')[source]

Get magnification from target radiograph by measuring inner tube wall of known diameter.

Parameters
  • shot (int) – Shot number to read raw radiographic iamge data from.

  • camera (str) – Framing camera for which radiographic image to read.

  • dataDir (str) – Path where data for shot day is stored.

  • px2Um (float) – Dummy value for magnification conversion to pass to initial image loading functions. This just sets the axes for those functions.

  • pxRef (tuple) – Reference position in pixels. This can be a dummy value as it is only used by functions loading the image data.

  • umRef (tuple) – Reference position in micrometers. This can be a dummy value as it is only used by functions loading the image data.

  • xMin (int) – Lower bound pixel for cropping in x-direction.

  • xMax (int) – Upper bound pixel for cropping in x-direction.

  • yMin (int) – Lower bound pixel for cropping in y-direction.

  • yMax (int) – Upper bound pixel for cropping in y-direction.

  • cropDownstream (tuple) – Tuple of values defining the axial pixel bounds of the downstream end of the tube. This is where the tube diameter measurement in pixels will be taken. Default is (1000, 1400).

  • innerDiameterUm (float) – The measured inner diameter of the target tube in micrometers. This is used the obtain the magnification in um/px. The default is 500 um, which is the nominal value of the Marble VC tube.

  • innerDiameterErrUm (float) – The error/uncertainty (one sigma) on the inner dimaeter of the target tube in micrometers. This is used to get the uncertainty on the magnification. Default is 0 um.

  • saveDir (str) – Directory for saving images and data. Default is empty string, which does not save the data.