eta = values[2];
depth = values[3];
depth_c = values[4];
CoordinateTransform rs = new VerticalCT("OceanSG2_Transform_" + ctv.getFullName(), getTransformName(), VerticalCT.Type.OceanSG2, this);
rs.addParameter(new Parameter("standard_name", getTransformName()));
rs.addParameter(new Parameter("formula_terms", formula_terms));
rs.addParameter((new Parameter("height_formula", "height(x,y,z) = eta(x,y) + (eta(x,y) + depth([n],x,y)) * ((depth_c*s(z) + depth([n],x,y)*C(z))/(depth_c+depth([n],x,y)))")));
if (!addParameter(rs, OceanSG2.ETA, ds, eta)) return null;
if (!addParameter(rs, OceanSG2.S, ds, s)) return null;
if (!addParameter(rs, OceanSG2.DEPTH, ds, depth)) return null;
if (!addParameter(rs, OceanSG2.DEPTH_C, ds, depth_c)) return null;
if (!addParameter(rs, OceanSG2.C, ds, c)) return null;