smps.AlphasenseOPCN2.integrate#
- AlphasenseOPCN2.integrate(weight='number', dmin=0.0, dmax=1.0, **kwargs)#
- Integrate by weight for each record in time. - Compute the total number of particles, surface area, volume, or mass between any two particle diameters. Correct for hygroscopic growth by defining a hygroscopic growth factor, kappa. - Parameters
- weightstr, default=’number’
- The moment/variable to integrate. One of (‘number’, ‘surface’, ‘volume’, ‘mass’). 
- dminfloat, default=0.0
- The minimum particle diameter in µm. 
- dmaxfloat, default=1.
- The maximum particle diameter in µm. 
- rhofloat or callable
- The density as a float or a callable function which takes particle diameter as its only argument and returns the density at that diameter. 
- kappafloat or callable
- The kappa growth factor as a float or a callable function which takes particles diameter as its only argument and returns the kappa value at that diameter. 
- rhstr
- If kappa is defined, rh is the column of data corresponding to the relative humidity which is required to correct for hygroscopic growth. 
 
- Returns
- datapd.Series
- A series containing the integrated values. 
 
 - Examples - Compute the total particle concentration under 1 µm: - >>> obj.integrate(weight='number', dmin=0., dmax=1.) - Compute PM1 - >>> obj.integrate(weight='mass', dmin=0., dmax=1.) - Compute PM2.5 assuming a kappa=0.3 - >>> obj.integrate(weight='mass', dmin=0., dmax=2.5, kappa=0.3, rh="sample_rh")