It’s the same calculation as used by any GNSS receiver, H = h - N. Which NMEA sentence are you using for the metadata ?