Isopycnal averaging at constant height. Part I: the formulation and a case study