opcsim.
OPC
(wl, bins=None, n_bins=5, dmin=0.5, dmax=2.5, theta=30.0, 90.0, **kwargs)¶Define an Optical Particle Counter (OPC) with unique properties for wavelength, bins, and viewing angle.
__init__
(self, wl, bins=None, n_bins=5, dmin=0.5, dmax=2.5, theta=(30.0, 90.0), \*\*kwargs)¶The laser wavelength in units of microns.
An array of bin diameters containing the (left boundary, midpoint, right boundary).
The number of desired bins. This should be used with dmin and dmax to generate a 3xn array of bins.
The left-most bin boundary of the OPC.
The right-most bin boundary of the OPC.
The viewing range in units of degrees.
An instance of the OPC class.
Examples
Initialize an OPC with 5 bins between 0.5 - 2.5 microns.
>>> opc = opcsim.OPC(wl=0.658, n_bins=5, dmin=0.5, dmax=2.5, theta=(30., 90.))
Initialize an OPC with known bins as defined by its bin boundaries.
>>> opc = opcsim.OPC(wl=0.658, bins=[0.38, 0.54, 0.78, 1.05, 1.5, 2.5], theta=(32., 88.))
Methods
|
|
|
Calibrate the OPC assuming a specific material. |
|
Return the total number of particles in each bin for a given AerosolDistribution. |
|
Return a histogram containing the [weight] of particles in each OPC bin. |
|
Integrate the distribution according to the OPC for any [weight]. |
Attributes
|
Bin width in microns |
|
Log-weighted bin width in microns |
|
Bin midpoints in microns |