cdm/src/main/java/ucar/nc2/dataset/conv/WRFConvention.java
public static boolean isMine(NetcdfFile ncfile) {
    if (null == ncfile.findDimension("south_north")) return false;

    // ARW only
    Attribute att = ncfile.findGlobalAttribute("DYN_OPT");
    if (att != null) {
      if (att.getNumericValue().intValue() != 2) return false;
    } else {
      att = ncfile.findGlobalAttribute("GRIDTYPE");
      if (att != null) {
        if (!att.getStringValue().equalsIgnoreCase("C") &&
                !att.getStringValue().equalsIgnoreCase("E"))
          return false;
      }
    }

    att = ncfile.findGlobalAttribute("MAP_PROJ");
    return att != null;
  }
public static boolean isMine(NetcdfFile ncfile) {
    if (null == ncfile.findDimension("south_north")) return false;

    // ARW only
    Attribute att = ncfile.findGlobalAttribute("DYN_OPT");
    if (att != null) {
      if (att.getNumericValue().intValue() != 2) return false;
    } else {
      att = ncfile.findGlobalAttribute("GRIDTYPE");
      if (att != null) {
        if (!att.getStringValue().equalsIgnoreCase("C") &&
                !att.getStringValue().equalsIgnoreCase("E"))
          return false;
      }
    }

    att = ncfile.findGlobalAttribute("MAP_PROJ");
    return att != null;
  }
}