cdm/src/main/java/ucar/nc2/Variable.java
public List<Dimension> getDimensionsAll() {
    List<Dimension> dimsAll = new ArrayList<>();
    addDimensionsAll(dimsAll, this);
    return dimsAll;
  }
public List<Dimension> getDimensionsAll() {
    List<Dimension> dimsAll = new ArrayList<>();
    addDimensionsAll(dimsAll, this);
    return dimsAll;
  }
Get list of Dimensions, including parents if any.

@return array of Dimension, rank of v plus all parents.