public static GridCoordSys makeGridCoordSys(Formatter sbuff, CoordinateSystem cs, VariableEnhanced v) {
    """
	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.
    """
    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 .