depth = values[3];
depth_c = values[4];
CoordinateTransform rs = new VerticalCT("OceanSG1_Transform_" + ctv.getFullName(), getTransformName(), VerticalCT.Type.OceanSG1, 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) = depth_c*s(z) + (depth([n],x,y)-depth_c)*C(z) + eta(x,y)*(1+(depth_c*s(z) + (depth([n],x,y)-depth_c)*C(z))/depth([n],x,y))")));
if (!addParameter(rs, OceanSG1.ETA, ds, eta)) return null;
if (!addParameter(rs, OceanSG1.S, ds, s)) return null;
if (!addParameter(rs, OceanSG1.DEPTH, ds, depth)) return null;
if (!addParameter(rs, OceanSG1.DEPTH_C, ds, depth_c)) return null;
if (!addParameter(rs, OceanSG1.C, ds, c)) return null;