cdm/src/main/java/ucar/nc2/units/SimpleUnit.java
public boolean isCompatible(String unitString) {
    Unit uuWant;
    try {
      UnitFormat format = UnitFormatManager.instance();
      uuWant = format.parse(unitString);
    } catch (Exception e) {
      if (debugParse) System.out.println("Parse " + unitString + " got Exception1 " + e);
      return false;
    }

    return uu.isCompatible(uuWant);
  }
public boolean isCompatible(String unitString) {
    Unit uuWant;
    try {
      UnitFormat format = UnitFormatManager.instance();
      uuWant = format.parse(unitString);
    } catch (Exception e) {
      if (debugParse) System.out.println("Parse " + unitString + " got Exception1 " + e);
      return false;
    }

    return uu.isCompatible(uuWant);
  }
Return true if unitString1 is compatible to unitString2,
meaning one can be converted to the other.
If either unit string is illegal, return false.
@param unitString check if this is compatible with unitString
@return true if compatible