<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def int_dp_g(arr, dp):
 """Mass weighted integral."""

    return integrate(arr, to_pascal(dp, is_dp=True),
                     vert_coord_name(dp)) / GRAV_EARTH