def get_pressure_at_height(press_0, z_0, z, temp_z, air_molar_mass=
    0.0289644, lapse_rate=0.0065, univ_gas_cst=8.3144598, g_0=9.80665):
    """Use the barometric formula to compute pressure at a
    given level from pressure at another.actuator.

    :param press_0: Pressure at given height (Pa).
    :param z_0: Height at which pressure is given (m).
    :param z: Height at which to return pressure (m).
    :param temp_z: Standard temperature at output height (K).
    :param air_molar_mass: Molar mass of air(kg/mol).
      Default is dry air molar mass 0.0289644 kg/mol.
    :param lapse_rate: Temperature lapse rate (K/m).
    :param univ_gas_cst: Universal gas constant (J/K/mol).
      Default is 8.3144598 J/K/mol.
    :param g_0: Gravitational acceleration (m/s2).
    :type press_0: float, array_like
    :type z_0: float, array_like
    :type z: float, array_like
    :type Tstd: float, array_like
    :type air_molar_mass: float, array_like
    :type lapse_rate: float, array_like
    :type univ_gas_cst: float
    :type g_0: float

    :returns: Pressure at given level.
    :rtype: float, array_like
    """
    exp = g_0 * air_molar_mass / (univ_gas_cst * lapse_rate)
    if z >= z_0:
        press_z = press_0 * (temp_z / (temp_z + lapse_rate * (z - z_0))) ** exp
    else:
        press_z = press_0 * (temp_z / (temp_z + lapse_rate * (z_0 - z))
            ) ** -exp
    return press_z
