4.1.1.1.1.10. pamtra2.hydrometeors.size

4.1.1.1.1.10.1. Module Contents

4.1.1.1.1.10.1.1. Functions

linspaceBounds(nBins=None, Dmin=None, Dmax=None)

Distribute size bins linearly.

logspaceBounds(nBins=None, Dmin=None, Dmax=None)

Distribute size bins in log scale.

boundsToMid(sizeBounds)

Return mid points of size bounds

boundsWidth(sizeBounds)

Return width of size bounds

linspaceBounds(nBins=None, Dmin=None, Dmax=None)[source]

Distribute size bins linearly.

Parameters
  • nBins (int) – number of bins

  • Dmin – minimum size (Default value = None)

  • Dmax – maximum size (Default value = None)

Returns

size – particle size at bounds of bin. length is nBins+1

Return type

array_like

logspaceBounds(nBins=None, Dmin=None, Dmax=None)[source]

Distribute size bins in log scale.

Parameters
  • nBins (int) – number of bins

  • Dmin – minimum size (Default value = None)

  • Dmax – maximum size (Default value = None)

Returns

size – particle size at bounds of bin. length is nBins+1

Return type

array_like

boundsToMid(sizeBounds)[source]

Return mid points of size bounds

Parameters

sizeBounds (array_like (len nBins+1)) – size boundaries

Returns

sizeCenter – particle size at center bin. length is nBins

Return type

array_like

boundsWidth(sizeBounds)[source]

Return width of size bounds

Parameters

sizeBounds (array_like (len nBins+1)) – size boundaries

Returns

boundsWidth – width of size bounds

Return type

array_like