code: def pressure_to_height_std(pressure):
      r
      t0 = 288. * units.kelvin
      gamma = 6.5 * units('K/km')
      p0 = 1013.25 * units.mbar
      return (t0 / gamma) * (1 - (pressure / p0).to('dimensionless')**(
          mpconsts.Rd * gamma / mpconsts.g))
docs: r"""Convert pressure data to heights using the U.S. standard atmosphere.
  
      The implementation uses the formula outlined in [Hobbs1977]_ pg.60-61.
  
      Parameters
      ----------
      pressure : `pint.Quantity`
          Atmospheric pressure
  
      Returns
      -------
      `pint.Quantity`
          The corresponding height value(s)
  
      Notes
      -----
      .. math:: Z = \frac{T_0}{\Gamma}[1-\frac{p}{p_0}^\frac{R\Gamma}{g}]