cdm/src/main/java/ucar/nc2/ft/point/standard/NestedTable.java
private void addDataVariables(List<VariableSimpleIF> list, Table t) {
    if (t.parent != null) addDataVariables(list, t.parent);
    for (VariableSimpleIF col : t.cols.values()) {
      if (t.nondataVars.contains(col.getFullName())) continue;
      if (t.nondataVars.contains(col.getShortName())) continue;  // fishy
      list.add(col);
    }
  }
private void addDataVariables(List<VariableSimpleIF> list, Table t) {
    if (t.parent != null) addDataVariables(list, t.parent);
    for (VariableSimpleIF col : t.cols.values()) {
      if (t.nondataVars.contains(col.getFullName())) continue;
      if (t.nondataVars.contains(col.getShortName())) continue;  // fishy
      list.add(col);
    }
  }
private void addDataVariables ( List < VariableSimpleIF > list , Table t ) { if ( t . parent != null ) addDataVariables ( list , t . parent ) ; for ( VariableSimpleIF col : t . cols . values ( ) ) { if ( t . nondataVars . contains ( col . getFullName ( ) ) ) continue ; if ( t . nondataVars . contains ( col . getShortName ( ) ) ) continue ; // fishy list . add ( col ) ; } }
use recursion so that parent variables come first
use recursion so that parent variables come first