visad/src/main/java/ucar/nc2/iosp/gempak/GempakFileReader.java
public DMPart getPart(String name) {
    if ((parts != null) && !parts.isEmpty()) {
      for (DMPart part : parts) {
        String partName = part.kprtnm;
        if (partName.equals(name)) {
          return part;
        }
      }
    }
    return null;
  }
public DMPart getPart(String name) {
    if ((parts != null) && !parts.isEmpty()) {
      for (DMPart part : parts) {
        String partName = part.kprtnm;
        if (partName.equals(name)) {
          return part;
        }
      }
    }
    return null;
  }
public DMPart getPart ( String name ) { if ( ( parts != null ) && ! parts . isEmpty ( ) ) { for ( DMPart part : parts ) { String partName = part . kprtnm ; if ( partName . equals ( name ) ) { return part ; } } } return null ; }
Find the part with the particular name.

@param name name of part to find
@return part or null if not found
Find the part with the particular name .