visad/src/main/java/ucar/nc2/iosp/grid/GridIndexToNC.java
private void makeVerticalDimensions(List<GridVertCoord> vertCoordList, NetcdfFile ncfile, Group group) {
    // find biggest vert coord
    GridVertCoord gvcs0 = null;
    int maxLevels = 0;
    for (GridVertCoord gvcs : vertCoordList) {
      if (gvcs.getNLevels() > maxLevels) {
        gvcs0 = gvcs;
        maxLevels = gvcs.getNLevels();
      }
    }

    int seqno = 1;
    for (GridVertCoord gvcs : vertCoordList) {
      if (gvcs != gvcs0) {
        gvcs.setSequence(seqno++);
      }
      gvcs.addDimensionsToNetcdfFile(ncfile, group);
    }
  }
private void makeVerticalDimensions(List<GridVertCoord> vertCoordList, NetcdfFile ncfile, Group group) {
    // find biggest vert coord
    GridVertCoord gvcs0 = null;
    int maxLevels = 0;
    for (GridVertCoord gvcs : vertCoordList) {
      if (gvcs.getNLevels() > maxLevels) {
        gvcs0 = gvcs;
        maxLevels = gvcs.getNLevels();
      }
    }

    int seqno = 1;
    for (GridVertCoord gvcs : vertCoordList) {
      if (gvcs != gvcs0) {
        gvcs.setSequence(seqno++);
      }
      gvcs.addDimensionsToNetcdfFile(ncfile, group);
    }
  }
private void makeVerticalDimensions ( List < GridVertCoord > vertCoordList , NetcdfFile ncfile , Group group ) { // find biggest vert coord GridVertCoord gvcs0 = null ; int maxLevels = 0 ; for ( GridVertCoord gvcs : vertCoordList ) { if ( gvcs . getNLevels ( ) > maxLevels ) { gvcs0 = gvcs ; maxLevels = gvcs . getNLevels ( ) ; } } int seqno = 1 ; for ( GridVertCoord gvcs : vertCoordList ) { if ( gvcs != gvcs0 ) { gvcs . setSequence ( seqno ++ ) ; } gvcs . addDimensionsToNetcdfFile ( ncfile , group ) ; } }
Make a vertical dimensions

@param vertCoordList vertCoords all with the same name
@param ncfile        netCDF file to add to
@param group         group in ncfile
Make a vertical dimensions