cdm/src/main/java/ucar/nc2/Variable.java
public String getUnitsString() {
    String units = null;
    Attribute att = findAttribute(CDM.UNITS);
    if (att == null) att = findAttributeIgnoreCase(CDM.UNITS);
    if ((att != null) && att.isString()) {
      units = att.getStringValue();
      if (units != null) units = units.trim();
    }
    return units;
  }
public String getUnitsString() {
    String units = null;
    Attribute att = findAttribute(CDM.UNITS);
    if (att == null) att = findAttributeIgnoreCase(CDM.UNITS);
    if ((att != null) && att.isString()) {
      units = att.getStringValue();
      if (units != null) units = units.trim();
    }
    return units;
  }
Get the Unit String for the Variable.
Looks for the CDM.UNITS attribute value

@return unit string, or null if not found.