from pyspedas.particles.moments.moments_3d import moments_3d


def spd_pgs_moments(data_in, sc_pot=0):
    """

    Calculates moments from a simplified particle data structure.
    Simply a wrapper for moments_3d right now

    Input:
        data_in: dict
            Particle data structure 

    Parameters:
        sc_pot: float
            Spacecraft potential

    Returns:
        Dictionary containing moments
    """
    return moments_3d(data_in, sc_pot=sc_pot)

f8b0efe5ad90dfe3b5d789a64f8c94f125690068
<mask token>

<mask token>


def spd_pgs_moments(data_in, sc_pot=0):
    """

    Calculates moments from a simplified particle data structure.
    Simply a wrapper for moments_3d right now

    Input:
        data_in: dict
            Particle data structure 

    Parameters:
        sc_pot: float
            Spacecraft potential

    Returns:
        Dictionary containing moments
    """
    return moments_3d(data_in, sc_pot=sc_pot)

from pyspedas.particles.moments.moments_3d import moments_3d


def spd_pgs_moments(data_in, sc_pot=0):
    """

    Calculates moments from a simplified particle data structure.
    Simply a wrapper for moments_3d right now

    Input:
        data_in: dict
            Particle data structure 

    Parameters:
        sc_pot: float
            Spacecraft potential

    Returns:
        Dictionary containing moments
    """
    return moments_3d(data_in, sc_pot=sc_pot)
