pysilcam/postprocess.py
def vd_to_nd(vd, dias):
    '''convert volume distribution to number distribution

    Args:
        vd (array)           : particle volume distribution calculated from vd_from_stats()
        dias (array)         : mid-points in the size classes corresponding the the volume distribution,
                               returned from get_size_bins()

    Returns:
        nd (array)           : number distribution as number per micron per bin (scaling is the same unit as the input vd)
    '''
    DropletVolume=((4/3)*np.pi*((dias*1e-6)/2)**3) # the volume of each droplet in m3
    nd=vd/(DropletVolume*1e9) # the number distribution in each bin
    return nd
convert volume distribution to number distribution

    Args:
        vd (array)           : particle volume distribution calculated from vd_from_stats()
        dias (array)         : mid-points in the size classes corresponding the the volume distribution,
                               returned from get_size_bins()

    Returns:
        nd (array)           : number distribution as number per micron per bin (scaling is the same unit as the input vd)
    
convert volume distribution to number distribution
convert volume distribution to number distribution
def vd_to_nd(vd, dias):
    DropletVolume=((4/3)*np.pi*((dias*1e-6)/2)**3) 
    nd=vd/(DropletVolume*1e9) 
    return nd
def vd_to_nd ( vd , dias ) : DropletVolume = ( ( 4 / 3 ) * np . pi * ( ( dias * 1e-6 ) / 2 ) ** 3 ) nd = vd / ( DropletVolume * 1e9 ) return nd
convert volume distribution to number distribution
convert volume distribution to number distribution
'''convert volume distribution to number distribution

    Args:
        vd (array)           : particle volume distribution calculated from vd_from_stats()
        dias (array)         : mid-points in the size classes corresponding the the volume distribution,
                               returned from get_size_bins()

    Returns:
        nd (array)           : number distribution as number per micron per bin (scaling is the same unit as the input vd)
    ''' # the volume of each droplet in m3 # the number distribution in each bin
nd (array)           : number distribution as number per micron per bin (scaling is the same unit as the input vd)
nd ( array ) : number distribution as number per micron per bin ( scaling is the same unit as the input vd )
vd
particle volume distribution calculated from vd_from_stats()
particle volume distribution calculated from vd_from_stats ()
dias
mid-points in the size classes corresponding the the volume distribution,
returned from get_size_bins()
mid - points in the size classes corresponding the the volume distribution returned from get_size_bins ()