visad/src/main/java/ucar/nc2/iosp/grid/GridEnsembleCoord.java
public void addDimensionsToNetcdfFile(NetcdfFile ncfile, Group g) {
    ncfile.addDimension(g, new Dimension(getName(), getNEnsembles(), true));
  }
public void addDimensionsToNetcdfFile(NetcdfFile ncfile, Group g) {
    ncfile.addDimension(g, new Dimension(getName(), getNEnsembles(), true));
  }
Add this as a dimension to a netCDF file

@param ncfile the netCDF file
@param g      the group in the file