cdm/src/main/java/ucar/nc2/dataset/transform/AbstractTransformBuilder.java
protected boolean addParameter(CoordinateTransform rs, String paramName, NetcdfFile ds, String varNameEscaped) {
    if (null == (ds.findVariable(varNameEscaped))) {
      if (null != errBuffer)
        errBuffer.format("CoordTransBuilder %s: no Variable named %s%n", getTransformName(), varNameEscaped);
      return false;
    }

    rs.addParameter(new Parameter(paramName, varNameEscaped));
    return true;
  }
protected boolean addParameter(CoordinateTransform rs, String paramName, NetcdfFile ds, String varNameEscaped) {
    if (null == (ds.findVariable(varNameEscaped))) {
      if (null != errBuffer)
        errBuffer.format("CoordTransBuilder %s: no Variable named %s%n", getTransformName(), varNameEscaped);
      return false;
    }

    rs.addParameter(new Parameter(paramName, varNameEscaped));
    return true;
  }
Add a Parameter to a CoordinateTransform.
Make sure that the variable exists. If readData is true, read the data and use it as the value of the
parameter, otherwise use the variable name as the value of the parameter.

@param rs             the CoordinateTransform
@param paramName      the parameter name
@param ds             dataset
@param varNameEscaped escaped variable name
@return true if success, false is failed