cdm/src/main/java/ucar/nc2/NetcdfFile.java
public Attribute findGlobalAttribute(String name) {
    for (Attribute a : gattributes) {
      if (name.equals(a.getShortName()))
        return a;
    }
    return null;
  }
public Attribute findGlobalAttribute(String name) {
    for (Attribute a : gattributes) {
      if (name.equals(a.getShortName()))
        return a;
    }
    return null;
  }
Look up global Attribute by (full) name.

@param name the name of the attribute
@return the attribute, or null if not found