pysilcam/postprocess.py
def vd_to_nc(vd, dias):
    '''calculate number concentration from volume 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:
        nn (float)           : number concentration (scaling is the same unit as the input vd).
                               If vd is a 2d array [time, vd_bins], nc will be the concentration for row
    '''
    nd = vd_to_nd(dias, vd)
    if np.ndim(nd)>1:
        nc = np.sum(nd, axis=1)
    else:
        nc = np.sum(nd)
    return nc
calculate number concentration from volume 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:
        nn (float)           : number concentration (scaling is the same unit as the input vd).
                               If vd is a 2d array [time, vd_bins], nc will be the concentration for row
    
calculate number concentration from volume distribution
calculate number concentration from volume distribution
def vd_to_nc(vd, dias):
    nd = vd_to_nd(dias, vd)
    if np.ndim(nd)>1:
        nc = np.sum(nd, axis=1)
    else:
        nc = np.sum(nd)
    return nc
def vd_to_nc ( vd , dias ) : nd = vd_to_nd ( dias , vd ) if np . ndim ( nd ) > 1 : nc = np . sum ( nd , axis = 1 ) else : nc = np . sum ( nd ) return nc
calculate number concentration from volume distribution
calculate number concentration from volume distribution
'''calculate number concentration from volume 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:
        nn (float)           : number concentration (scaling is the same unit as the input vd).
                               If vd is a 2d array [time, vd_bins], nc will be the concentration for row
    '''
nn (float)           : number concentration (scaling is the same unit as the input vd).
If vd is a 2d array [time, vd_bins], nc will be the concentration for row
nn ( float ) : number concentration ( scaling is the same unit as the input vd ) . If vd is a 2d array [ time vd_bins ] nc will be the concentration for row
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 ()