cdm/src/main/java/ucar/nc2/dt/grid/GridCoordSys.java
public static GridCoordSys makeGridCoordSys(Formatter sbuff, CoordinateSystem cs, VariableEnhanced v) {
    if (sbuff != null) {
      sbuff.format(" ");
      v.getNameAndDimensions(sbuff, false, true);
      sbuff.format(" check CS %s: ", cs.getName());
    }

    if (isGridCoordSys(sbuff, cs, v)) {
      GridCoordSys gcs = new GridCoordSys(cs, sbuff);
      if (sbuff != null) sbuff.format(" OK%n");
      return gcs;
    }

    return null;
  }
public static GridCoordSys makeGridCoordSys(Formatter sbuff, CoordinateSystem cs, VariableEnhanced v) {
    if (sbuff != null) {
      sbuff.format(" ");
      v.getNameAndDimensions(sbuff, false, true);
      sbuff.format(" check CS %s: ", cs.getName());
    }

    if (isGridCoordSys(sbuff, cs, v)) {
      GridCoordSys gcs = new GridCoordSys(cs, sbuff);
      if (sbuff != null) sbuff.format(" OK%n");
      return gcs;
    }

    return null;
  }
public static GridCoordSys makeGridCoordSys ( Formatter sbuff , CoordinateSystem cs , VariableEnhanced v ) { if ( sbuff != null ) { sbuff . format ( " " ) ; v . getNameAndDimensions ( sbuff , false , true ) ; sbuff . format ( " check CS %s: " , cs . getName ( ) ) ; } if ( isGridCoordSys ( sbuff , cs , v ) ) { GridCoordSys gcs = new GridCoordSys ( cs , sbuff ) ; if ( sbuff != null ) sbuff . format ( " OK%n" ) ; return gcs ; } return null ; }
Determine if the CoordinateSystem cs can be made into a GridCoordSys for the Variable v.

@param sbuff put debug information into this StringBuffer; may be null.
@param cs    CoordinateSystem to check.
@param v     Variable to check.
@return the GridCoordSys made from cs, else null.
Determine if the CoordinateSystem cs can be made into a GridCoordSys for the Variable v .