cdm/src/main/java/ucar/nc2/Group.java
public Dimension findDimension(String name) {
    if (name == null) return null;
    // name = NetcdfFile.makeNameUnescaped(name);
    Dimension d = findDimensionLocal(name);
    if (d != null) return d;
    Group parent = getParentGroup();
    if (parent != null)
      return parent.findDimension(name);

    return null;
  }
public Dimension findDimension(String name) {
    if (name == null) return null;
    // name = NetcdfFile.makeNameUnescaped(name);
    Dimension d = findDimensionLocal(name);
    if (d != null) return d;
    Group parent = getParentGroup();
    if (parent != null)
      return parent.findDimension(name);

    return null;
  }
Retrieve a Dimension using its (short) name. If it doesnt exist in this group,
recursively look in parent groups.

@param name Dimension name.
@return the Dimension, or null if not found